This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Setting a variable and using it in a...
expandshrink

Setting a variable and using it in a treemenu function

Setting a variable and using it in a treemenu function

Tuesday 13 July 2004 1:25:23 am

This is probably an easy thing, but I'm not much of a coder, and haven't been able to make it work. I want use a variable in a treemenu template, and I want that variable to be equal to 0 if the page is the front page (node 2) and be equal to 1 if the page is in any other node. How would I do that?
I'm using the default 'flat_left.tpl' template and want to change the the depth skip.

Thanks,
Kimball

No reply yet!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from