Forums / Setup & design / fetch trouble: Expected whitespace, got: 'fetch(content, node, hash{node_id, 62))}'

fetch trouble: Expected whitespace, got: 'fetch(content, node, hash{node_id, 62))}'

Author Message

Gabriel Ambuehl

Saturday 14 June 2003 2:14:53 am

I wanted to display the content of node 62 on some place in my pagelayout. After some RTFM I figured that the following should work:

{let leftbox=fetch(content, node, hash{node_id, 62))}
{node_view_gui content_object=$leftbox}
{/let}

But eztemplate complains::
Expected whitespace, got: 'fetch(content, node, hash{node_id, 62))}'

Never mind that some lines above, I fetch the children of the root node with
{let children=fetch('content',list,hash(parent_node_id,2))}
and that works perfectly.

Oh, template compiling has been turned off for the time being.

Visit http://triligon.org

Gabriel Ambuehl

Sunday 15 June 2003 1:55:58 am

For reasons beyond my understanding,

{let children=fetch(content,node,hash(node_id,62))}
{node_view_gui view=full content_node=$children}
{/let}

will works just perfectly.

Visit http://triligon.org

Paul Borgermans

Sunday 15 June 2003 3:10:35 am

>For reasons beyond my understanding,
>{let children=fetch(content,node,hash(node_id,62))}
>{node_view_gui view=full content_node=$children}
>{/let}
>will works just perfectly.

Hmm?

hash{node_id, 62) is a typo, hash(node_id,62) is correct.

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Gabriel Ambuehl

Sunday 15 June 2003 10:10:27 am

Oh dear. So there must not be any whitespace in the hash :-(

Visit http://triligon.org

Jan Borsodi

Sunday 15 June 2003 12:46:36 pm

Whitespace was not the problem, you had a { (curly brace) instead of a ( (parenthesis).

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq