Pierre Rougier wrote:
hi,
You'd best make a ZClass, subclassing from Folder. You can add any >(well many) other behaviour stuff to it you like. In Zope hierarchy it will behave exactly like a normal folder and it will be added to the product Add list.
Well, thanks Rik, it helps.... well... I manage to add the specialFolder, but the problem is that I can't see the content of my SpecialFolder when I go in, I mean I defined an index_html and an Object in my ZClass, but I can not see it when I instanciate the ZClass! Is there something to change somewhere in order to make it appear???
What do you mean by I can't see it? The ZClass instance won't show you the contents of the ZClass definition, but that doesn't mean they can't be reached. If you defined an index_html, have you tried using the view method of the folder. By default it shows the index_html of the ZClass. If you want the object to show up you'll have to call it from one of the (DTML or other) methods inside the folder.
and one more thing: I would like to put the Folder icon to my SpecialFolder: do u know how I can do it??
Yep. Probably the easiest way is to download the folder icon and then specify it under the ZClass Basic tab, where there is an icon option. Rik