in article list.apps.zope/3906FFB8.96FDD69E@ina.fr, Pierre Rougier at prougier@ina.fr wrote on 2000-04-26 10:39 AM:
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???
Yes-- I'm trying to do the same thing. I've created these objects in my methods section of my Zclass object which subclasses folder. But when I 'add' an instance else where, I don't see these things in my new folder instance. There must be some code that I need to add to 'create' these objects that I want each _folder_ to have in it (like some dtml documents and a user folder). I'm wondering also.
and one more thing: I would like to put the Folder icon to my SpecialFolder: do u know how I can do it??
Just save the existing folder to your harddrive. Then use photoshop to change it. then back in Zope, in your Product click on your Zclass and then the Basic Tab. Then click on Icon Image and then select the modified image from your local harddrive. -andy diller