eZ Community » Forums » Setup & design » fetch trouble: Expected whitespace,...
expandshrink

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

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

Saturday 14 June 2003 11:14:53 am - 4 replies

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.

Sunday 15 June 2003 10: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.

Sunday 15 June 2003 12:10:35 pm

>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

Sunday 15 June 2003 7:10:27 pm

Oh dear. So there must not be any whitespace in the hash sad.gif Emoticon

Sunday 15 June 2003 9:46:36 pm

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

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from