Forums / Setup & design / Using node_path parameter to fetch node

Using node_path parameter to fetch node

Author Message

Lida Popelo

Thursday 30 September 2004 10:09:49 am

Hi All.

in documentation i found that i can fetch node using node_path

fetch( 'content', 'node',
       hash( [ 'node_id', id, ]
             [ 'node_path', path ] ) )

But no examples i found how to do it.

Suppose i want fetch node ezpublish/articles/article1
what string i need to pass as a 'node_path' parameter ?

Frederik Holljen

Thursday 30 September 2004 11:57:44 pm

You can use a full URL or a system URL. So try something like
fetch( 'content', 'node', hash( 'node_path', 'content/view/full/2' ) )