Florent Guillaume wrote: > On 3 Jan 2006, at 14:24, Jean-Marc Orliaguet wrote: > >> Florent Guillaume wrote: >> >>> On 3 Jan 2006, at 13:10, Jean-Marc Orliaguet wrote: >>> >>>>> - there are a few problems with the default root portlets, some >>>>> are duplicated or present where they shouldn't. >>>> >>>> >>>> >>>> this should be easy to fix, this is because the portlet guards >>>> are not set during the installation. >>> >>> >>> >>> Ah yes, I didn't do the I/O of the guards. Is that why I found >>> seemingly duplicated portlets? The guards were different? >>> >>> Florent >>> >> >> Yes, the guards are used as visibility criteria in that case based >> on the current template / action. > > > Can't we have a single guard for both cases instead of duplicating > portlets? I hate duplication. > > > Florent I hate duplication. too:-) but they are actually different portlets. The ones you're thinking of are probably the document portlet and the navigation portlet in the middle of the page. Both show the document's title. Otherwise, yes, they should be merged and the guard expression should be something like: python: condition1 or condition2. /JM
Hosting: Nuxeo: Zope service provider