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

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