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

eZ debug

Timing: Jan 17 2025 22:49:18
Script start
Timing: Jan 17 2025 22:49:18
Module start 'content'
Timing: Jan 17 2025 22:49:19
Module end 'content'
Timing: Jan 17 2025 22:49:19
Script end

Main resources:

Total runtime0.6798 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.8438180.8203
Module start 'content' 0.00660.5678 768.6641555.6406
Module end 'content' 0.57440.1054 1,324.3047336.7422
Script end 0.6797  1,661.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5437210.0002
Check MTime0.00130.1906210.0001
Mysql Total
Database connection0.00090.128610.0009
Mysqli_queries0.617590.83831940.0032
Looping result0.00160.24161920.0000
Template Total0.653496.120.3267
Template load0.00170.248620.0008
Template processing0.651795.863520.3258
Template load and register function0.00010.013310.0001
states
state_id_array0.00080.112410.0008
state_identifier_array0.00080.113320.0004
Override
Cache load0.00140.2065170.0001
Sytem overhead
Fetch class attribute can translate value0.00160.228730.0005
Fetch class attribute name0.00110.166150.0002
XML
Image XML parsing0.00120.177630.0004
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00230.3322360.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs