how to access content inside folders of zclasses?
I have this zclass "Contentbox" in the product "contentProduct". Inside the zclass i have a folder "manage_images" with some pictures. How do I reference to the content of the folder when I have instanciated my zclass? Also in the ZMI. It all looks something like this: | |-[Control Panel] | | | [ContentProduct] | | | [Contentboxzclass] | | | [folder] | | | Pic1 | Pic2 |-[testfolder] | | | [ContentboxInstance] | | | index_html | So: I want to reference the images both in the index_html in my instance of contentbox, AND in the ZMI. Is there an reference on how to do this somewhere? Best regards Einar Jensen
einar jensen wrote at 2003-3-20 00:54 +0100:
I have this zclass "Contentbox" in the product "contentProduct". Inside the zclass i have a folder "manage_images" with some pictures. .... How do I reference to the content of the folder when I have instanciated my zclass? Also in the ZMI.
So: I want to reference the images both in the index_html in my instance of contentbox, AND in the ZMI.
Is there an reference on how to do this somewhere?
I am not sure, I understand your problem, but ... Any attribute (i.e. "method", "property") of the ZClass is also an attribute of its instances. Thus, you should be able to access the images like this: <yourInstance>.<yourFolder>.<yourImage> Dieter
At 21:07 20.03.2003 +0100, you wrote:
I am not sure, I understand your problem, but ...
I think you understood it quite well :)
Any attribute (i.e. "method", "property") of the ZClass is also an attribute of its instances.
Thus, you should be able to access the images like this:
<yourInstance>.<yourFolder>.<yourImage>
Yes. That was what i thought, and expected. But it did not work. Not until I set the appropriate permissions in the control panel for that zclass/folder. It now works the way I want it, but it is starting to get clear to me that i should have started working on python based products insted of zclasses. Einar
participants (2)
-
Dieter Maurer -
einar jensen