Forums / General / Treemenu documentation comment
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
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
Friday 20 February 2004 7:27:13 am
Yes, this is in 3.3