Basic SEO plugin for October CMS
This is a basic SEO Plugin for October CMS. Includes support for:
Component gives access to title
, description
, keywords
, canonicalUrl
, redirectUrl
, robotsFollow
,robotsIndex
, ogImage
, ogImageWidth
and ogImageHeight
fields that are filled dynamically depending on type of site.
Insert the component into layout, and then render it in the <head>
section. For example:
<!DOCTYPE html>
<html>
<head>
{% component 'Seo %}
<!-- Other tags -->
</head>
<body>
{% page %}
</body>
</html>
You can choose from component options whether to include Open Graph tags, Twitter tags and JSON-LD;
You can also modify default component template or access fields directly.
Use events to customize any component or page property before rendering,
take absolute control of your SEO and opengraph attributes:
Event::listen('seotweaker.beforeComponentRender', function ($component, $page) {
$component->ogImage = 'http://example.org/og-image.jpg';
$component->ogImageWidth = '1200';
$component->ogImageHeight = '630';
$component->title = "{$component->title} - Your global site suffix";
});