|
1 | | -SEOTab |
2 | | -======== |
| 1 | +# MODX SEO Tab - The best way to perform in search engines |
| 2 | +   |
3 | 3 |
|
4 | | -Author: Sterc.nl <modx@sterc.nl> |
| 4 | +SEO Tab is a MODX Extra that helps you optimize your pages for the best possible performance in search engines, like Google. |
5 | 5 |
|
6 | | -Description: |
7 | | --------------------- |
8 | | -MODX SEOTab is a MODX package that helps you manage your pages in Google. It allows you to: |
9 | | -- Manage noindex, nofollow |
| 6 | +### Key features of SEO Tab: |
| 7 | +- Manage search engine visibility (noindex, nofollow) |
10 | 8 | - Manage internal search engine behavior |
11 | | -- Manage your Google Sitemap |
| 9 | +- Manage your Google XML Sitemap(s) |
12 | 10 | - Manage 301 redirects |
13 | | -- Automatically generate 301 redirects when changing a resource URL from the resource itself |
| 11 | +- Automatically generate 301 redirects when changing a resource URL |
| 12 | +- Freeze URL functionality is moved into the SEO-tab |
14 | 13 |
|
15 | | -Bugs and Features: |
16 | | --------------------- |
17 | | -https://github.com/Sterc/SEOTab |
| 14 | +## Installation |
| 15 | +Simply install it through the top menu ```Extras > Installer``` and search for ```SEO Tab```. Install it from there. After installing it, it is recommended to clear your MODX cache, through the top menu ```Manage > Clear Cache```. |
| 16 | + |
| 17 | +## Upgrade risks |
| 18 | +First of all: ALWAYS MAKE A BACKUP BEFORE UPDATING! Especially the modx_site_content database table in this case. |
| 19 | + |
| 20 | +Upgrading to 2.0.0 from 1.* is highly recommended, but it does introduce some risks. SEO Tab 1.* stored the 301 redirects into the properties-column of a resource. SEO Tab 2 stores it in a seperate database table. This means a migration is needed. The migration-process is memory-intensive and might take a very long time, so just let it roll until it mentions a finished migration. |
| 21 | + |
| 22 | +Possible problems (and solutions): |
| 23 | +- Long migration-process because of many resources and redirects (think of 1000+ resource websites). Not really a problem, but if you have a big site, just plan your update at a low-traffic time, because redirects won't work 100% during the migration. |
| 24 | +- A blank page with a 500 error. This usually is because of memory issues. Try to re-run the migration with a lower limit and queryLimit. It is currently set to limit:1000 and queryLimit=100. Try setting it to 500 and 50 in core/components/stercseo/processors/mgr/redirect/migrate.class.php |
| 25 | +- If you somehow end up with an unfinished migration and the migration-notice is gone, you can fix it by setting the SystemSetting stercseo.migration_status to 0. |
| 26 | + |
| 27 | +## Usage |
| 28 | +SEO Tab is automatically enabled after install. Don't forget to clear your cache. |
| 29 | + |
| 30 | +## Using the Google XML Sitemap |
| 31 | +You have to manually create a resource within MODX, ```Template: (empty)```. go to the tab ```Settings``` and set ```Content Type: XML```, ```Cachable``` and ```Rich Text``` should be ticked off. In the content field, use the following code: |
| 32 | + |
| 33 | + |
| 34 | +```HTML |
| 35 | +[[!StercSeoSiteMap]] |
| 36 | +``` |
| 37 | + |
| 38 | +The sitemap-snippet has multiple (all optional) properties. |
| 39 | + |
| 40 | +Property | Default value | Description |
| 41 | +---|---|--- |
| 42 | +contexts|web|Specify one or more contextKey's, separated by a comma. |
| 43 | +allowSymlinks|0|Set this to ```1``` if you want to include symlinks in your sitemap. |
| 44 | +outerTpl|sitemap/outertpl|Refer to a chunk here to change the outer template, which contains rows of rowTpl's (see below). |
| 45 | +rowTpl|sitemap/rowtpl|Refer to a chunk here to change the rowTpl which is repeated for every resource which is included in the sitemap. |
| 46 | + |
| 47 | +An example of a sitemap-call with all properties set to a default-value would be: |
| 48 | +```HTML |
| 49 | +[[!StercSeoSiteMap? &contexts=`web` &allowSymlinks=`0` &outerTpl=`sitemap/outertpl` &rowTpl=`sitemap/rowtpl`]] |
| 50 | +``` |
| 51 | + |
| 52 | +## Using the robots-tag |
| 53 | +Within the tab ```SEO > Findability```, you can manage three options which determine the robots-tag. If you leave out a robots-tag and do not have a robots.txt in your website-root, the Search engine will use the following robots-tag: |
| 54 | +```HTML |
| 55 | +<meta name="robots" content="index, follow"> |
| 56 | +``` |
| 57 | + |
| 58 | +The settings ```Include in search engines``` and ```Following links``` result in two placeholders which you can add to your template/chunks: |
| 59 | + |
| 60 | +```HTML |
| 61 | +<meta name="robots" content="[[+seoTab.robotsTag]]"> |
| 62 | +``` |
| 63 | + |
| 64 | +If you set ```Include in search engines``` to ```no```, it will generate the following HTML: |
| 65 | + |
| 66 | +```HTML |
| 67 | +<meta name="robots" content="noodp,noydir,noindex"> |
| 68 | +``` |
| 69 | + |
| 70 | +We add noopd,noydir by default, because we don't want the [Open Directory Project](http://www.dmoz.org/) and the Yahoo Directory (deprecated) to change how are pages are displayed within Google. |
| 71 | + |
| 72 | +## Bugs and feature requests |
| 73 | +We greatly value your feedback, feature requests and bug reports. Please issue them on [Github](https://github.com/Sterc/SEOTab/issues/new). |
0 commit comments