[Zope-CMF] folder content (big post)
Jens Vagelpohl
jens@zope.com
Fri, 30 Nov 2001 09:50:35 -0500
it does it if all you want to change is the look and feel of that=20
particular content type, yes
jens
On Friday, November 30, 2001, at 08:37 , Stephan G=F6ldi wrote:
> But creating a new portal_type and portal_type_view can enable this,=20=
> doesn't
> it?
>
> ----- Original Message -----
> From: "Jens Vagelpohl" <jens@zope.com>
> To: "Stephan G=F6ldi" <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=3Dmy_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=F6ldi 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=20
>> editable.
>>
>> When I add a portal folder (via the "folder content" functionality of=20=
>> CMF)
>> ,
>> it is seen by "folder content". But these folders behave different =
than
>> standard folders:
>>
>> portal folders seem to include the functionality of =
standard_html_header
>> 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=20=
>> above
>> 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=20=
>> portal
>> 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 =
itself
>> (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=20
>> 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 =
this
>> subfolder as index_html? The problem is, that the above mentioned
>> functionality of headers and footers doesn't work anymore, when i =
create
>> 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 =
feature
>> requests
>
>