Others can correct me if I'm wrong, but the Zope way would not be to a structure like the following: /news/ /general/ /general_content /index_html /sports/ /sports_content /index_html /weather/ /weather_content /index_html but rather to have /news/ /content /index_html /general/ /content /sports/ /content /weather/ /content In index_html you would do: <dtml-var content> and when the user's browser uses: .../news/index_html the aquisition will replace <dtml-var content> with the content object in the /news/ folder, when the browser uses the URL: .../news/general/index_html then acquisition will replace <dtml-var content> with the content object found in /news/general/ and so on... Alternately you can iterate over folders: <dtml-with news> <dtml-in "objectItems(['Folder'])"> <dtml-var content> </dtml-in> </dtml-with> Where, through the magic of acquisition within the dtml-in contruct, the <dtml-var content> gives you the contents of each folders 'content' object. I think... Cheers... Bruce Chris Cooke-Johnson wrote:
I've got a series or sectional news folders, each folder has a DTML doc which contains the content and a DTML method as the index_html which is substituting another DTML method which references the content file. Basically, I've got one DTML method in the parent directory, which is being used by all the index_html DTML methods in the sub folders.
my first attempt at the code was:
<dtml-var <dtml-var id>_content>
So if the active dir is "general" then I'd end up with
<dtml-var general_content>
Which would be in turn replaced by the DTML document.
This way the one master DTML method can be used through all of the sections.
I hope I've managed to clear it up a bit.
Thanx Chris
-- Bruce Elrick, Ph.D. Saltus Technology Consulting Group Cell: (403) 870-4429 Personal: belrick@home.com IBM Certified Specialist Business: belrick@saltus.ab.ca ADSM, AIX Support, RS/6000 SP, HACMP