Share » Forums » Setup & design » Have a path-section inside templates

Have a path-section inside templates

Have a path-section inside templates

Monday 25 October 2004 3:25:46 pm - 1 reply

Modified on Monday 25 October 2004 3:27:19 pm by Robin Sørlie

Author Message

Silke Fox

Tuesday 26 October 2004 3:50:08 am

The problem is that $module_result is available in pagelayout.tpl only.
In "view" templates you can access the nodes path with {$node.path_array},
but it doesn't contain the name and url_alias - only the node ids.
You could loop through this array and fetch every node to get its name etc.
with fetch("content","node",hash(node_id,...)).

Hope this helps a bit.
silke

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu