An SEO plugin that allows for simple placement of meta tags for CMS pages and developer overrides.
Please see the documentation on how it this works.
Super Simple SEO for OctoberCMS
How to use
Installation
- Install the plugin to your plugins folder under
plugins/jd/seo
- In the
head
tag of your website insert the component{% component 'seoTags' %}
Controlling the output
There are 1 of 2 ways you can control the output of each tag.
- By using the default CMS Page meta title or description field
- Programatically defining the tags in your own plugin or CMS page
Programmatically controlling the SEO tags
Programmatically controlling your output will override a pages meta title and description fields.
use JD\SEO\SEO; ... public function onRun() { SEO::meta()->title($title) ->description($description) // Google / Schema.org tags ->schema([ 'name' => $title, 'description' => $description, 'image' => $image, ]) // Twitter tags ->twitter([ 'title' => $title, 'description' => $description, 'image' => $image, 'url' => 'https://my-awesome-site.com', ]) // OpenGraph tags ->og([ 'site_name' => 'My Awesome site', 'url' => 'https://my-awesome-site.com', 'title' => $title, 'description' => $description, 'image' => $image, ]) ->keywords(['awesome', 'page']) ; }
This will output...
<title>My awesome page</title> <meta name="description" content="This is my awesome page description." /> <meta name="keywords" content="awesome, page" /> <meta property="og:site_name" content="My Awesome site" /> <meta property="og:url" content="https://my-awesome-site.com" /> <meta name="twitter:url" content="https://my-awesome-site.com" />
-
Alex Muturi
Found the plugin useful on 25 Sep, 2020
Plugin was useful
-
Kiko Seijo
Found the plugin useful on 9 Aug, 2017
Excellent plugin, but i miss the twitter and Facebook objects! The image and the social cards. Will be so good to be able to control those also.
Good job!
-
1.1.0 |
Support for OpenGraph/Facebook, Twitter & Google/Schema.org tags Apr 12, 2019 |
---|---|
1.0.1 |
First version of SEO Jun 06, 2017 |