Forums / Developer / Setting a variable and using it in a treemenu function

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Setting a variable and using it in a treemenu function

Author Message

StoneFly Techonology

Monday 12 July 2004 4:25:23 pm

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