Re: [Zope] Subfolders in LocalFS
Thierry, I'm not sure I can show you the light, but I might be able to give you an idea. I do a similar thing on my site. I store a path in a FSSession variable and access the files in it with the following syntax: <dtml-in "images[FSSession['LoginCompanyImagesPath']].fileIds()"> With this, I can access subdirectories several levels deep. Hope this helps.
I'm trying to get the content of a subfolder from a directory structure using LocalFS doing the following :
<dtml-in expr="Pictures['subfolder1']['subfolder2']['subfolder3'].fileItems()"> <dtml-var id> </dtml-in>
So far, everything looks fine...
The actual problem is that I'm not able to enter a subfolder defined in a variable way. It works out fine when >there is only one subfolder :
<dtml-call "REQUEST.set('location','Summer')"> <dtml-in expr="Pictures[Summer].fileItems()"> <dtml-var id> </dtml-in>
but what to do if we need a subfolder's subfolder ? We can try typing :
<dtml-call "REQUEST.set('location','Summer/Vacation')"> <dtml-in expr="Pictures[Summer].fileItems()"> <dtml-var id> </dtml-in>
to get the content of the Summer/Vacation folder... But this fails in ZOPE ! Can someone show me the light please. Thanks, Thierry
Jeff Nielsen / UgoFast http://www.UgoFast.com Jeff@UgoFast.com
participants (1)
-
Jeff Nielsen / UgoFast