Examples from the book: Ez publish basics

Author Message

Ciaran McGrath

Friday 07 July 2006 8:06:30 am

Hi,

I've been trying to use one of the examples from the new book but I'm getting an error when using the simple menu example from page 138

Here's the line of code:

{def $elements = fetch( content, list, hash( parent_node_id, 2, class_filter_type, include, class_filter_array, array( 'folder' ) )}

And here's the error message I get in the debug mode

parser error @ design/mcg/templates/pagelayout.tpl:22
($) expected at [fetch( content, list, hash( parent_node_id, 2, class_filter_type, include, class_filter_array, array( 'folder' 
) )]

Please help. I'm totally confused by this system.!

André R.

Friday 07 July 2006 8:14:52 am

Count number of "(", then count number of ")"

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Ciaran McGrath

Friday 07 July 2006 8:38:29 am

I really should have spotted that!

There are a quite a few errors in just that one example.

It's going to be a long night :-(

Thanks for your help

Jennifer Zickerman

Thursday 24 August 2006 4:43:06 pm

Hello. Thanks for pointing out these errors. I've created an Errata page for the book at http://ez.no/products/books/ez_publish_basics/ez_publish_basics_errata and posted a corrected version of the code snippet.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.