Forums / Setup & design / fetch node by node_path
Olav Bringedal
Tuesday 31 May 2005 7:09:59 am
Im trying to fetch a node by name. Hovewer I cannot get the fetch node to work no matter what "node_path" i have used.
http://ez.no/ez_publish/documentation/reference/data_fetching/content/node
ive tried:
/1/4/5 /1/4/5/ /sitename/cat/where/the_node/is /sitename/cat/where/the_node/is/ /cat/where/the_node/is/cat/where/the_node/is/
havent tried case-sensitiviy though...
no luck.
can someone please show me an example how to use fetch ('content', 'node', hash('node_path', "????"))
...and you would get Many Thanks! :)
Senior Consultant http://Umoe-consulting.no
Steve P
Wednesday 01 June 2005 2:24:04 am
Hi Olav
The example explains how to do this:
{* Fetch node number 42. *} {let node=fetch( 'content', 'node', hash( 'node_id', 42 ) )} {* Display the name of the node. *} {$node.name} {/let}
You'll need to provide a node you know exists! Let me know how you get on...
Best
Steve