Share » Forums » Developer » array as parent node_id in fetch...

array as parent node_id in fetch produces parse error

array as parent node_id in fetch produces parse error

Tuesday 15 March 2011 1:48:58 pm - 2 replies

Author Message

Carlos Revillo

Tuesday 15 March 2011 1:59:56 pm

i think it's just a typo in the doc. there shouldn't be any spaces between array and the parenthesis

that's it.

fetch( 'content', 'list', hash( 'parent_node_id', <b>array(</b> '42', '43', '45' ),              'sort_by',        array( 'published', false() ) ) )fetch( 'content', 'list',        hash( 'parent_node_id', array ( '42', '43', '45' ),              'sort_by',        array( 'published', false() ) ) )

Marko Žmak

Tuesday 15 March 2011 2:05:25 pm

i think it's just a typo in the doc. there shouldn't be any spaces between array and the parenthesis

that's it.

fetch( 'content', 'list', hash( 'parent_node_id', <b>array(</b> '42', '43', '45' ),              'sort_by',        array( 'published', false() ) ) )fetch( 'content', 'list',        hash( 'parent_node_id', array ( '42', '43', '45' ),              'sort_by',        array( 'published', false() ) ) )

Oh yes...

I didn't notice the space, silly me.

Still, the docs should be corrected not to confuse newcommers. I reported it here:

http://issues.ez.no/IssueView.php?Id=18150&activeItem=1

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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

36 542 Users on board!

Forums menu