[Zope-CMF] Placeful default skin?

marc lindahl marc@bowery.com
Tue, 11 Dec 2001 16:44:16 -0500


Having a different look in certain folders could be done within the same
'skin' - if you think of a skin as the overall look of the site, it makes
sense.  So then, look at what you need to change.  the default_stylesheet,
perhaps, associated properties, standard header.... so you could just name
them, for example, news_stylesheet, and also something like
'standard_news_header', both in your skin folder.  Then in the News folder,
put a dtml method called standard_dtml_header, that just has <dtml-return
standard_news_header> in it.  This way, it overrides the normal header, and
you have your modified header in the skins folder, which means it's easy to
make yet a newer skin and change the look of the news part.  Same goes with
whatever other things you want to modify.

Anyway, that would be my approach (or I should say, that IS my approach on
http://www.bowery.com)

> From: Lalo Martins <lalo@hackandroll.org>
> Date: Tue, 11 Dec 2001 18:02:43 -0200
> To: zope-cmf@lists.zope.org
> Subject: [Zope-CMF] Placeful default skin?
> 
> Hi there,
> 
> I think this was discussed in this list in the past, but not in the
> recent past, so perhaps something changed.
> 
> I have a site like
> 
> TheSite
> |
> +- News
> |  |
> |  +- Local
> |  |
> |  +- International
> |  |
> |  +- Sports
> |
> +- Movies
> 
> There are, of course, other things (such as the Members folder) in the
> "root". These use a default CMF skin.
> 
> But my customer wants the default skin inside "News" to be different
> from the global one. Also, sooner or later he'll want Sports to use a
> different skin too.
> 
> Is this at all possible? I tried to change SkinsContainer.getSkin()
> to acquire a property, but it didn't work.
> 
> []s,
> |alo
> +----
> --
> It doesn't bother me that people say things like
> "you'll never get anywhere with this attitude".
> In a few decades, it will make a good paragraph
> in my biography. You know, for a laugh.
> --
> http://www.laranja.org/                mailto:lalo@laranja.org
> pgp key: http://www.laranja.org/pessoal/pgp
> 
> Brazil of Darkness (RPG)      ---       http://www.BroDar.org/
> 
> _______________________________________________
> 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