-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dc199e
commit ba7e4d5
Showing
1 changed file
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,63 @@ | ||
# seo | ||
|
||
SEO plugin SilverStripe, provides a comprehensive editor for the Site Tree objects, and generates real time previews of the search results, facebook and twitter cards. | ||
This SEO plugin for SilverStripe 4 provides a complete SEO plugin for SilverStripe. It provides you with a SEO editor with instant | ||
previews of your page on google, facebook and twitter, and also gives you with a report letting you know which pages needs improvements. | ||
|
||
The plugin is still in its early stages of development, and any help / ideas to improve the usability are mostly welcome. | ||
|
||
## Maintainers | ||
[email protected] | ||
|
||
|
||
## Installation | ||
|
||
Using composer. | ||
Use composer to install on your SilverStripe 4 website. | ||
|
||
``` | ||
composer require silverstripers/seo dev-master | ||
``` | ||
|
||
## Requirements | ||
|
||
1. SilverStripe 4+ | ||
2. SilverStripe Reports | ||
3. SilverStripe Assets | ||
|
||
## Basic usage | ||
|
||
require the package via composer and run dev build. Out of the box the module created database fields and update the CMS with the SEO options. | ||
Require the package via composer and run dev build. http://mysite.com/dev/build?flush=all | ||
The module will create additional SEO fields for the SiteTree (page) objects and will add in an interface for set up the SEO data. | ||
|
||
## DataObjects as pages | ||
|
||
If you are using data objects as pages then you may need to add in SEO fields for those data objects to do that it needs to | ||
decorate the data object with SEODataExtension | ||
|
||
``` | ||
MyDataObject: | ||
extensions: | ||
SilverStripers\seo\Extensions\SEODataExtension | ||
``` | ||
|
||
This will create the db fields and add the seo editor on to the CMS. | ||
|
||
Within the controller you need to call `override_seo_from` function, and pass your data record for the module to grab the SEO details | ||
|
||
``` | ||
use SilverStripers\seo\Extensions\SEODataExtension | ||
... | ||
## TODO: | ||
class MyController extension Controller { | ||
... | ||
public function view() | ||
{ | ||
... | ||
SEODataExtension::override_seo_from($record); | ||
... | ||
} | ||
} | ||
``` | ||
|
||
1. Add ranking on SEO fields | ||
2. Create reports for SEO Pages and other objects | ||
3. Find ways to set data object as pages SEO tools. |