Treemenu documentation comment

Author Message

Paul Forsyth

Friday 20 February 2004 5:43:41 am

I can't add a comment to the treemenu doc yet, so ill add here:

http://ez.no/ez_publish/documentation/reference/template_operators/miscellaneous/treemenu

The second example has a feature i'd like:


{$menu.last.level}

I have logic in my own menu to do the same thing but if its handled in php all the better. But, this code isn't in trunk yet, nor is it mentioned in the treemenu doc. Will it be soon?

Also, in the second example what does 'last-value' do in the {section} statement:


{section var=menu loop=$:docs last-value}

I assume its a typo.

Paul

Bård Farstad

Friday 20 February 2004 5:58:51 am

last-value is short for last-value=true(). This will enable access to the previous section item via the .last attribute. I will add this to the section doc as well.

--bård

Documentation: http://ez.no/doc

Paul Forsyth

Friday 20 February 2004 7:20:47 am

Ah, pretty neat. Is this a new 3.3 feature? I can change my templates now :)

Thanks

Paul

Bård Farstad

Friday 20 February 2004 7:27:13 am

Yes, this is in 3.3

--bård

Documentation: http://ez.no/doc

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