[Zope-CMF] custom CMF Content Type (FAQ Content Type)

Jens Vagelpohl jens@zope.com
Wed, 14 Nov 2001 09:38:28 -0500


jan,

i don't have any step by step guide that i use. my methodology is =
looking=20
at the code for existing similar content objects and emulating / =
extending=20
the behavior in my own code.

jens



On Wednesday, November 14, 2001, at 08:37 , Jan Mechtel wrote:

> Hi,
> did u created it after a certain tutorial/howto if so please send me =
the
> link otherwise could you summarise in keywords how you have created =
such=20
> a
> new object/product? So that I can follow it step by step and see =
whether=20
> it
> works.
>
> Thanks in advance
>
> Jan Mechtel
> -------------------------------
> pc-sofa
> jan@pc-sofa.de
> Telefon: +49 (0)30 21469659
> Fax:     +49 (0)89 244341516
> Oschatzer Ring 28
> 12627 Berlin
> Germany
>
> www.pc-sofa.de
>
> -----Urspr=FCngliche Nachricht-----
> Von: Jens Vagelpohl [mailto:jens@zope.com]
> Gesendet: Montag, 12. November 2001 15:06
> An: Jan Mechtel
> Cc: 'Zope-Cmf@Zope. Org'
> Betreff: Re: AW: AW: [Zope-CMF] custom CMF Content Type (FAQ Content =
Type)
>
> whenever i created content types they were either purely type based
> (meaning no filesystem code, just a tweaked type object derived from
> another type) or they were filesystem based. and all that stuff has =
worked
> for me so far.
>
> jens
>
>
> On Monday, November 12, 2001, at 08:40 , Jan Mechtel wrote:
>
>> oh, right now I know what u meant, but anyway I checked this before =
:-/
>>
>> any other hint? does it work with your cmf? have u ever created an =
own
>> content type?
>>
>> so far
>>
>> Jan
>>
>> -----Urspr=FCngliche Nachricht-----
>> Von: Jens Vagelpohl [mailto:jens@zope.com]
>> Gesendet: Montag, 12. November 2001 13:49
>> An: Jan Mechtel
>> Cc: Zope-Cmf@Zope. Org
>> Betreff: Re: AW: [Zope-CMF] custom CMF Content Type (FAQ Content =
Type)
>>
>>
>> when you go to a folder and view the "folder contents" view you will =
see
>> a
>> button "Set View Filter" underneath the new/rename/cut/copy/delete
>> buttons.
>>
>> make sure that either nothing is selected (meaning the objects shown =
are
>> not filtered) or, if anything is checked, that the object you're =
trying=20
>> to
>> make visible is checked also.
>>
>> jens
>>
>>
>> On Sunday, November 11, 2001, at 11:04 , Jan Mechtel wrote:
>>
>>>> have you completed step 8, setting up a type information object?
>>> Yes I think so, otherwise I would be able to add a content using =
CMF?
>>>> at that point you should check the view filter settings in the
>>> folder_contents view.
>>> I'm not sure whether I got you right, where to find the "view filter
>>> settings in the folder_contents view" I mapped the actions to the =
views
>>> correctly but I can't find any settings for "folder_contents"
>>>
>>> Thanks for your quick answer I hope you can help me further
>>>
>>> Jan
>>>
>>> www.pc-sofa.de
>>>
>>> -----Urspr=FCngliche Nachricht-----
>>> Von: Jens Vagelpohl [mailto:jens@zope.com]
>>> Gesendet: Sonntag, 11. November 2001 15:49
>>> An: Jan Mechtel
>>> Cc: zope-cmf@zope.org
>>> Betreff: Re: [Zope-CMF] custom CMF Content Type (FAQ Content Type)
>>>
>>> have you completed step 8, setting up a type information object? at =
that
>>> point you should check the view filter settings in the =
folder_contents
>>> view.
>>>
>>> jens
>>>
>>>
>>> On Sunday, November 11, 2001, at 08:42 , Jan Mechtel wrote:
>>>
>>>> Hi,
>>>> I followed the "howto" of tseaver
>>>> (http://cmf.zope.org/CMF/Members/tseaver/how_tos/faq_howto)
>>>> and managed to set up a product view and edit it.
>>>> But the problem is that users can't see the objects in their
>>>> CMF-Folders,
>>>> although they are there as I can see them in ZMI
>>>>
>>>> I traced the problem =EDn folder_contents.py to the contentValues()
>>>> method.
>>>> If I use objectValues instead the objects are shown correctly
>>>>
>>>> The comments in the scripts say contentValues() filters the object=20=

>>>> which
>>>> have no "ContentTypeInformation", but as my Product implements the
>>>> Zclass
>>>> "PortalType" it should provide it?
>>>>
>>>> I'll provide more details if needed.
>>>>
>>>> Hope somebody can give me a hint.
>>>>
>>>> Jan Mechtel
>>>> -------------------------------
>>>> pc-sofa
>>>> jan@pc-sofa.de
>>>> Telefon: +49 (0)30 21469659
>>>> Fax:     +49 (0)89 244341516
>>>> Oschatzer Ring 28
>>>> 12627 Berlin
>>>> Germany
>>>>
>>>> www.pc-sofa.de
>>>>
>>>
>>
>