[Zope-CMF] Actions Tool
Jon Edwards
jon@pcgs.freeserve.co.uk
Thu, 30 Aug 2001 15:48:16 +0100
Marc wrote :
>> From: Chris Withers <chrisw@nipltd.com>
>>
>> How are people generally tackling the problem of 'navigation bars'?
>
> Uh... ugly hacks? :)
Ditto, except a separate method from the Actions_Box (as only our editors
see that). Just a dtml-in of the parentfolder with some extra criteria.
But the recent post about using "path" in a catalog-query seemed a better
solution, as you can define criteria better in a search than a dtml-in?
Something like (pseudocode - haven't tried this yet)...
<dtml-let current_path=relative_url>
<dtml-in "portal_catalog.searchResults(path={'query'=current_path,
level=1})">
<a href=..............
</dtml-in>
</dtml-let>
HTH
Cheers, Jon