[Zope-CMF] folder content (big post)

Tim Hoffman timhoffman@cams.wa.gov.au
Mon, 03 Dec 2001 11:02:33 +0800


Hmm

Unless I am misunderstanding things wouldn't skinnable folders actually 
achieve what
you want more easily.

in portal types select add Factory Type information"

select skinnable folder.

In actions view option change the view method to whatever you name your 
new view method.

This means calls to index_html will call your view method.

Any other ways still means that if you call index_html  or foilder_name/
you will get the index_html method, because with the way you have 
described below you will always
have to explicitly call the folder_name/view method.

Regards

Tim

Jens Vagelpohl wrote:

> stephan,
>
> here is the steps i followed and it works for me:
>
> - copy the "Folder" type inside the types tool
> - paste it and change its ID to "My_Folder"
> - click My_Folder and go to its Actions tab
> - in the action with name "View" i put "my_folder_view" for the 
> "Action" value
> - inside the portal_skins tool i went to zpt_generic/folder_contents 
> and hit "customize"
> - in the skins tool "custom" folder i renamed folder_contents to 
> my_folder_view
>
> now i can create folders of type "My_Folder" and the "View" link in 
> the actions box pulls up "my_folder_view".
>
> jens
>
>
> On Friday, November 30, 2001, at 11:30 , Stephan Göldi wrote:
>
>>> i'm really unclear about what you mean. if you created something 
>>> with the
>>> literal ID portal_type_view and did not associate it with the type 
>>> via the
>>> type object in the portal_types tool then it will never do anything
>>> because portal_type_view is not an ID that is used by the standard 
>>> portal
>>> types.
>>
>>
>> I used not the real names. So here are the real names:
>>
>> in /portal_types I created a new portal_type with the name 
>> product_folder
>> I moved /portal_skins/content/folder_view to /portal_skins/custom and 
>> edited
>> it.
>> Then I renamed folder_view to product_folder_view
>> I associated product_folder_view with product_folder by changing the
>> "Factory-based Type Information" in the "Actions" Tab. There is the 
>> Action
>> for "View" now set to product_folder_view.
>>
>> I thought, that for the folders of the type "product_folder" it will use
>> product_folder_view from /portal_skins/custom to display it. But this
>> doesn't seem to happen.
>>
>>
>>
>
>
> _______________________________________________
> 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
>
>