Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Conditional Breadcrumbs

I am using the example for Breadcrumbs from FogCreek:

<div id="breadcrumbs">

    {$ foreach 1 x in (and thisFolder (fileName "index")) $}
          {$ x.extra2 $}
    {$ next $}

</div>

I have a scenario where I don't want the BreadCrumbs on the template but the remainder of the template remains intact.

Are two templates needed or is there a conditional available.

_
Saturday, August 21, 2004

Forgot to mention that the <div>  is formatted differently so it isn't just a matter of deleting the index article.

Thanks

_
Saturday, August 21, 2004

I'm an idiot

{$ foreach 1 x in (and thisFolder (fileName "index")) $}
    <div id="breadcrumbs">
          {$ x.extra2 $}
    </div>
{$ next $}

In my own defence...  I'm really not that bright.

_
Saturday, August 21, 2004

*  Recent Topics

*  Fog Creek Home