Forums / Developer / Current page node id [SOLVED] / Comment62022
Lo' F.
Monday 27 September 2010 1:36:16 pm
Thank Håvard for your reply.
I actually embedded those frontpage objects of the frontpage class from the admin back-end.
And making the adjustments from the contentview/line.tpl template..
{default node_name=$object.main_node.name node_url=$object.main_node.url_alias} <h2>{if $node_url}<a href={$node_url|ezurl}>{/if}{$node_name|wash}{if $node_url}</a>{/if}</h2> {/default}
Here the $current_node_id doesn't work..
So far... among with all the attempts aimed to get the current page url (..unable to get the node_id from here I was trying to get the current page url)...:
- {ezpagedata().path|ezurl} or {$module_result.path|ezurl} return a too short result ( "/index.php/ita" )
- {$child.url|ezurl()} too long ( "/index.php/ita/the-page-I-need/its-last-child/its-last-child's-last-child" )
loredanaebook.it