John Schinnerer <johnschinnerer@yahoo.com> wrote:
... <p tal:condition="python:request.PARENTS[0].id!='designserv'"> <a href="/designserv/designserv.html">Design Services</a></p> <p tal:condition="python:request.PARENTS[0].id=='designserv'"> <span class="boldrightnavtxt">Design Services</span> ...
If there's a slicker way to do this sort of thing in ZPT I'd be happy to hear about it, but peterbe's example seems to show the same method...?
I use: <tal:block define="cond python:request.PARENTS[0].id!='designserv'"> <a tal:condition="cond" href="/designserv/designserv.html">Design Services</a> <span tal:condition="not:cond" class="boldrightnavtxt">Design Services</span> </tal:block> Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com