[Zope-CMF] still having zpt-calendar skin problem

Tres Seaver tseaver@zope.com
22 Mar 2002 13:25:54 -0500


On Thu, 2002-03-21 at 23:15, Steve Arnold wrote:
> On Wed, 2002-03-20 at 04:37, Tres Seaver wrote:
> > Steve Arnold wrote:
> >  > Okay, here's the short version.
> >  >
> >  > The calendar works, and so do events.  Everything appears to be setup and
> >  > working correctly.  *Except* when I click on the calendar link (and my
> >  > default is the zpt-basic skin) it switches to the old Basic skin to display
> >  > the calendar.  Clicking on any other link (except the month forward and
> >  > backward links) switches it back to the zpt skin.
> >  >
> >  > Does that make any sense?
> > 
> > Yep;  the 'calendarDisplay' folder you added has a DTML method,
> > 'calendar', which uses the 'standard_header' / 'standard_footer' from
> > the old Basic type.  You need to replace it with a ZPT based version,
> > perhaps using the NuxWidgets product to render the calendar:
> > 
> >    http://www.zope.org/Members/nuxeo/Products/NuxWidgets
> 
> I actually stopped and thought about it after I got home tonight,
> browsed the code a little, and figured that out myself (amazing, ain't
> it?).  What I can't figure out is what to replace the standard_header
> and standard_footer with.  The zpt_generic folder doesn't even have any
> of that legacy zope stuff, since it uses the main_template macros and
> stylesheet stuff instead (which I have nary a clue about at this point).
> 
> I'll take a look at the above product, but from my (naive) point of
> view, it seems like I shouldn't have to go that route.  Isn't there some
> relatively simple replacement for the <dtml-var standard_html_header>
> thing?  I actually did look at some of the zpt files to see if I could
> spot something obvious, but I didn't get very far.  I could use some
> pointers here...

You can certainly customize 'standard_html_header/footer' to look more
like the ZPT-based skin;  you might find that this requires more effort
than building a ZPT version of the calendar using NuxWidgets, however.

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