Searching through PARENTS
Is there a way for a DTMLMethod to determine if a particular folder is in its acquisition path? For example, suppose I have the following structure: / FolderA FolderB FolderC FolderD FolderE If I define a method which actually resides in FolderA (and is therefore inherited by subfolders), is there way for me to check to see if FolderB is in my PARENTS collection? If I was displaying /FolderA/FolderB/FolderC I would want my method to answer true to the question of whether or not FolderB was in my PARENTS collection. Howerver if I was displaying /FolderA/FolderD/FolderE, the answer would be false. What I really want to know is if there is a syntax which can answer the question PARENTS contains "<some id>" Thanks. James W. Howe AppNet Inc. 650 Avis Dr. Suite 100 mailto:james.howe@appnet.com Ann Arbor, MI 48108 http://www.appnet.com
"James W. Howe" wrote:
Is there a way for a DTMLMethod to determine if a particular folder is in its acquisition path? For example, suppose I have the following structure:
Is this as simple as: <dtml-if FolderA> yes <dtml-else> no </dtml-if> Or is there some side effect of acquisition that would make that not work? Doug ----------------------------------------------------------------------------- Doug Hellmann Greenberg News Networks, Inc. Software Engineer (Soon to be WebMD) hellmann@gnncast.net http://www.medcast.com / http://www.webmd.com
participants (2)
-
Doug Hellmann -
James W. Howe