[Zope-CMF] Help: New install of CMF and lots of problems customizing index_html

Tres Seaver tseaver@zope.com
26 Apr 2002 11:23:27 -0400


On Fri, 2002-04-26 at 10:48, John D. Heintz wrote:
> Anybody?
> 
> This is a really big problem for me, and I'm sure others as well.

John,

Check the "Basic" skin in your 'portal_skins' tool;  you will see that
it now includes the ZPT-based skin directories ahead of the DTML-based
ones, which means that your 'local_html' is expected to be a template
exporting two macros, 'header' and 'body'.  If you don't want to use the
ZPT skins, you can just remove them from the path, and revert to pure
DTML.

> 
> John
> 
> On Wed, 2002-04-24 at 14:47, John D. Heintz wrote:
> > Hi all!
> > 
> > I have just logged a bug in the tracker, but was hoping that someone on
> > the list could help we figure this out.
> > 
> > The short of my config is Linux 2.4, Zope 2.5.0, and CMF from CVS.
> > 
> > The behavior I'm getting is a bunch of dead-ends from every direction I
> > know of to change the front page of my new portal.
> > 
> > I am trying to:
> > 1) add local_html to Portal Folder and getting:
> > "'local_html' body goes here." in the center and left side.
> > This appears to be coming from the index_html.pt but I can't figure out
> > why.
> >  
> > If I browse to /Portal/local_html I see the dtml output without the
> > standard header and footer.
> >  
> > 2) customize portal_skins/generic/index_html.dtml to
> > custom/index_html.dtml and getting a KeyError.
> >  
> > 3) Modify index_html.dtml file on filesystem to force some changes and
> > restart Zope. Modified beginning to include some extra <h1> tags like:
> > <dtml-var standard_html_header>
> >  
> > <dtml-if expr="'local_html' in objectIds()">
> > <!-- localattr -->
> > <h1>Use local_html!!!!!</h1>
> > <dtml-var local_html>
> > <dtml-else>
> >  
> > <h2><h1>Use built-in index_html!!!</h1> <dtml-var title_or_id></h2>
> >  
> >  
> > I didn't see any of the headings in the generated html, but the new
> > content is visible after restart by using ZMI to look at
> > /Portal/portal_skins/generic/index_html 
> > 
> > The details can be found in the Tracker at:
> > http://www.zope.org/Products/PTK/Tracker/504
> > 
> > Thanks for any help,
> > John Heintz
> > 
> > 
> > _______________________________________________
> > Zope-CMF maillist  -  Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> > 
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests
> > 
> -- 
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com