Forums / Developer / Visualization of a main node (node father)

Visualization of a main node (node father)

Author Message

Rafael Andres Gonzalez Lopez

Wednesday 24 August 2005 7:54:23 am

Good... I have a problem...
I need to visualize (to (show) the name (attribute) of the previous node to which(who) a user this one located, that is to say, from a certain node I need to open the name of the previous node or father of this one.

With this instruction I know the node father:

{$main_node_id}

Without embardo wanted it is to know the name of the attribute, not his(her,your) number...

Besides it he wanted to come to the previous node or father of the above mentioned node by means of a hyperlink, to avoid to press the button of behind of the browser...

Well, in advance thank you for the help...

Ekkehard Dörre

Wednesday 24 August 2005 9:30:14 am

This might help:

http://ez.no/products/ez_publish_cms/documentation/incoming/how_to_find_the_parent_and_grandparent_of_an_object

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Rafael Andres Gonzalez Lopez

Wednesday 24 August 2005 11:02:20 am

Thanks Ekke...

In him connect that you gave me solve the problem of showing the name of the previous node of the following way:

{let current=fetch('content','node',hash('node_id',$node.node_id))
parent=fetch('content','node',hash('node_id',$:current.object.main_parent_node_id))
grandparent=fetch('content','node',hash('node_id',$:parent.object.main_parent_node_id))}

{$:grandparent.name}
{$:parent.name}
{$:current.name}

{/let}

Nevertheless I am necessary to create a link that allows me to open the nodes by means of a hyperlink, something this way like:

<a href={" "|ezurl}>{$:grandparent.name}</a>
<a href={" "|ezurl}>{$:parent.name}</a>

The detail is that not that to put in the "href".

Thank you in advance for any other help...

Kristof Coomans

Wednesday 24 August 2005 10:55:12 pm

You can use the attribute url_alias of a node to make a link to it.

<a href={$:grandparent.url_alias|ezurl}>{$:grandparent.name}</a>
<a href={$:parent.url_alias|ezurl}>{$:parent.name}</a>

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Rafael Andres Gonzalez Lopez

Thursday 25 August 2005 11:09:55 am

Thanks Kristof...

Now everything works well...

Bertrand Dunogier

Sunday 28 August 2005 11:02:40 am

Once you have a node fetched, aren't you supposed to be able to use {$node.parent} as many times as you want ??

eZ debug

Timing: Jan 18 2025 11:19:47
Script start
Timing: Jan 18 2025 11:19:47
Module start 'content'
Timing: Jan 18 2025 11:19:47
Module end 'content'
Timing: Jan 18 2025 11:19:47
Script end

Main resources:

Total runtime0.1555 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.8438180.8125
Module start 'content' 0.00730.0052 768.656398.0547
Module end 'content' 0.01240.1430 866.7109526.6250
Script end 0.1554  1,393.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00382.4686200.0002
Check MTime0.00150.9717200.0001
Mysql Total
Database connection0.00080.536410.0008
Mysqli_queries0.112872.56371410.0008
Looping result0.00130.84841390.0000
Template Total0.142691.710.1426
Template load0.00110.693410.0011
Template processing0.141591.022810.1415
Override
Cache load0.00080.499710.0008
Sytem overhead
Fetch class attribute can translate value0.00070.418610.0007
XML
Image XML parsing0.00020.148410.0002
General
dbfile0.00211.3459200.0001
String conversion0.00000.005130.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs