[Zope-CMF] Annotated Dogbowl Skins and ZPT

Tres Seaver tseaver@zope.com
Wed, 26 Sep 2001 08:18:20 -0400


Norman Khine wrote:

 > How do you implement the Bredcrumbs link using the new ZPT_skins, as is currently
 >  on the http://cmf.zope.org site.
 >
 > I have followed the http://cmf.zope.org/doc/admin/dogbowl_skins/view and looking
 >  at the zpt_generic folder I see we have the python script breadcrumbs, but
 >  am at a loss as to how to include it and the changes that I need to make.


The dogbowl's 'main_template' just does this::

    <div class="breadcrumbs"
       tal:content="structure here/breadcrumbs"> <p> Breadcrumbs </p>
    </div>

This works because the 'breadcrumbs' method is returning a string
containing the anchor tags already.  A somewhat cleaner mechanism
would be to make the PythonScript return a data structured,
containing id, title, and link for each "crumb";  the template
would then assemble them into HTML.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com