Some viewlets to do SEO work in Plone sites
Project description
Introduction
This product adds some viewlet to improve SEO in Plone sites:
Meta tag to tell robots “noindex, follow” the batch pages
Canonical url link for all pages. We have followed these rules for canonical urls:
For normal content, the url is the object’s url without the trailing ‘/’:
yoursite.com/news/ -> yoursite.com/news
Default page (and its trailing ‘/’) is removed from the canonical url:
yoursite.com/news/aggregator -> yoursite.com/news (aggregator is the default page of news)
yoursite.com/news/aggregator/ -> yoursite.com/news (aggregator is the default page of news)
View or template name is preserved in the canonical url:
yoursite.com/@@search?SearchableText=query -> yoursite.com/@@search?SearchableText=query
yoursite.com/folder1/folder_listing -> yoursite.com/folder1/folder_listing
Customized batching template to create batching base urls based on canonical urls.
Tested with Plone 4.2.x. It should work all previous Plone 4 versions, but it’s untested.
In Plone 4.3.x the changes in batching template will not be available, because of the use of plone.batching product and this product provides replacement just for batch_macros.pt template.
Changelog
1.1 (2013-11-18)
Added <meta name=”robots” value=”noindex,follow” /> for the default pages [libargutxi]
Added zcml:condition=”not-have plone-43” for canonical viewlet [libargutxi]
1.0.3 (2012/09/10)
Batch template needs base urls without parameters [erral]
1.0.2.1 (2012/09/10)
Brown bag release: Remove debugging output from template. [erral]
1.0.2 (2012/09/10)
Fix batch url for 2nd and next pages [erral]
1.0.1 (2012/09/07)
One more check in baching [erral]
1.0 (2012/09/07)
Fix batches’ base url with canonical urls [erral]
Remove trailing / for the canonical urls, rely on the default view (template or default page) [erral]
Added <link rel=”canonical” …> tag for all pages. [erral]
Added meta noindex, follow tag for batch pages [erral]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.