[Zope] tab and templates
Ben Avery
ben@thesite.org
Wed, 20 Nov 2002 12:28:19 +0000
hi Nicolas,
this would be pretty easy to do, although I'm more a dtml man then zpt
(until it finally drives me mad).
so I can give you some ideas, but you'll have to work out the difference
between the two.
I'd have a common dtml-method that is called at the top of each page, in
the standard_html_header, which displays all the tab text, with
graphical seperators between them to give the illusion of tabs. There
would be conditional statements around each tab to identify the id of
the page being displayed, and setting the colour of that tab to be the
same as the main page, and setting the colour of the others to a dimmer
shade. The text of the non-selected tabs would be a link to those pages'
URLs.
hope this helps,
Ben
Nicolas LAURANCE wrote:
> Hi zopers,
>
> I would like to presents datas of my objects in a windows with tabs
> (like in the management screens)
>
> I need several tabs (details, attached docs, ...)
>
> I have no clue and found no info about how do achieve that with TAL
> templates.
>
> Any idea ? Pointers ?
>
> thanks
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>