Forums / Setup & design / documentation for canonical link feature

documentation for canonical link feature

Author Message

Greg McAvoy-Jensen

Thursday 26 May 2011 2:37:07 am

Has anyone found documentation for the canonical link feature, other than what's in the demo content? I'm trying to demo it but can't get it working in the 2011.5 version.

Thanks!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

André R.

Friday 27 May 2011 1:22:20 am

There is non yet, forgot to mark issue as doc required.

In the mean time issue has some info: http://issues.ez.no/IssueView.php?Id=17762&activeItem=1&

Edit: Issue is a bit hard to read as its a lot of discussion, short intro:

Language link: If content is not in same langage as current siteaccess code will try to generate link by convention, or configuration if defined, see: https://github.com/ezsystems/ezpublish/commit/ac01c73c87e0be11b4358fa0bba58f823f44f41c

Main node link: If current node is not main node and user has access to main node then a link to main node is generated.

On top of that you can generate custom link using persistent_variable, this will override above logic.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Greg McAvoy-Jensen

Thursday 02 June 2011 10:25:10 pm

Thanks, André. So am I correct in saying that the infrastructure (variables ready to be used by templates) for canonical links is provided, but actual template code is not provided in the eZ Publish distributions? I don't see any code which actually builds the link tag.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog