[Zope-CMF] folder content (big post)
Stephan Göldi
Stephan Göldi
Fri, 30 Nov 2001 14:37:47 +0100
But creating a new portal_type and portal_type_view can enable this, doesn't
it?
----- Original Message -----
From: "Jens Vagelpohl" <jens@zope.com>
To: "Stephan Göldi" <web@goeldi.com>
Cc: "cmf" <zope-cmf@zope.org>
Sent: Friday, November 30, 2001 1:54 PM
Subject: Re: [Zope-CMF] folder content (big post)
stephan,
if i understand what you are saying correctly then you want, kind of in
"normal" zope-fashion, have a site where somewhere down in the folder tree
the appearance changes. Using a normal dtml-based zope site you would
usually do something like drop in a different standard_html_header/footer.
the CMF just doesn't work that way. it is more about content and content
management and "standard" zope entities (like dtml methods or standard
folders) will misbehave if not used carefully. the normal CMF entities
never try to (and are not made to) influence the site's look and feel and
change it. that's just not part of the CMF way of doing things.
so the reason you're not successful here is the basic CMF philosophy. look
and feel is not decided or influenced somewhere on the site, it is driven
by the stuff you have in the portal_skins tool, and all that stuff is
globally available. i don't see a way to "selectively" change look and
feel at random points inside the CMF that is as easy as a new header and
footer.
one workaround would be to develop a skin that gives you the desired new
look and making sure it gets applied whenever people step into the part of
the site that is supposed to have it. that could be done by query string
(append something like ?portal_skin=my_new_skin to the URLs) or by
manually twiddling the cookie that holds this value. that's hackish,
though. there is no really easy way.
jens
On Friday, November 30, 2001, at 03:56 , Stephan Göldi wrote:
> In CMF, when I add a folder (not portal folder) via the ZMI, it is
> viewable
> in CMF. When I click on "folder content", it is not seen and not editab=
le.
>
> When I add a portal folder (via the "folder content" functionality of C=
MF)
> ,
> it is seen by "folder content". But these folders behave different than
> standard folders:
>
> portal folders seem to include the functionality of standard_html_heade=
r
> and
> standard_html_footer. I do not have to include these two tags in an
> index_html. The standard zope folder needs these two tags. One level ab=
ove
> resides an index_html, which includes these two tags. The index_html is
> needed, because the subfolders shall display some pre-formatted stuff.
>
> Now the standard Zope folders display everything correct, while the por=
tal
> folders display the standard_html_headers twice. So the actions_box and
> the
> top of the CMF is displayed twice.
>
> So I need an answer on how I get these standard folders (not portal
> folders)
> seen, when I click on "folder content". I have to edit the folder itsel=
f
> (description etc.) AND the content (portal image etc.).
>
> Did I miss something essential?
>
> The other approach is, handling index_html on another way. Perhaps i
> missed
> a basic cmf philosophy?
>
> When I change index_html in the 'custom' folder, it is clear, that the =
top
> level appearance of cmf is changed. But what, if I want to change the
> appearance of a subfolder? Is it correct, to create a dtml method in th=
is
> subfolder as index_html? The problem is, that the above mentioned
> functionality of headers and footers doesn't work anymore, when i creat=
e
> such a method outside of cmf.
>
> --------------------------------------
> Goeldi.com - Internet Services
> --------------------------------------
> www.goeldi.com
> web@goeldi.com
> Tel +41-61-7330555
> Fax +41-61-7330556
> --------------------------------------
>
>
>
> _______________________________________________
> 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 featur=
e
> requests