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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 01:56:02
Script start
Timing: Jan 18 2025 01:56:02
Module start 'layout'
Timing: Jan 18 2025 01:56:02
Module start 'content'
Timing: Jan 18 2025 01:56:03
Module end 'content'
Timing: Jan 18 2025 01:56:03
Script end

Main resources:

Total runtime0.7905 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.1641152.6406
Module start 'layout' 0.00760.0039 741.804739.4844
Module start 'content' 0.01140.7775 781.2891550.5469
Module end 'content' 0.78890.0015 1,331.835912.1250
Script end 0.7904  1,343.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3994160.0002
Check MTime0.00120.1525160.0001
Mysql Total
Database connection0.00080.100310.0008
Mysqli_queries0.738493.4108570.0130
Looping result0.00060.0720550.0000
Template Total0.749894.920.3749
Template load0.00160.206720.0008
Template processing0.748194.645020.3741
Template load and register function0.00010.013410.0001
states
state_id_array0.00110.141810.0011
state_identifier_array0.00160.199620.0008
Override
Cache load0.00130.1614170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088920.0004
Fetch class attribute name0.00120.152650.0002
XML
Image XML parsing0.00280.350920.0014
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00370.4726250.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs