How to get into subfolders and display content
Hi! I wonder how I can get into subfolders and display the content therein. Say I have this DTML method: <!--#in "objectValues(['Folder'])"--> <IMG SRC="<!--#var icon-->"> <A HREF="/some/place/show_files?folder_id=<!--#var id-->"><!--#var title--></A><BR> <!--#/in--> Pressing the link on a folders title will bring on folder_id to the show_files DTML method. This is ok, but how can I get into the folder with id=folder_id, so that I can display the files therein? I tried: <!--#in "objectValues(['Folder'])"--> <!--#if "id==folder_id"--> #this one doesn't work - why? <!--#in "objectValues(['File'])"--> <!--#var id--> <!--#/in--> <!--#/if--> <!--#/in--> And: <!--#call "_.getattr(PARENTS[0],folder_id)"--> <!--#in "objectValues(['File'])"--> <!--#var id--> <!--#/in--> This one displays nothing - why? Please tell me the correct way to handle this problem. Sture Lygren
participants (1)
-
Sture Lygren