Aquisition: who know how it does?
Assume the following: ----------------------------------------- Folder1 index_html doc_include_html Folder2 img1 doc_include_html ----------------------------------------- 'doc_include_html' in 'Folder1' has the following code ----------------------------------------- <dtml-var standard_html_header> <h2><dtml-var title_or_id></h2> <p>doc include Folder 1</p> <dtml-var standard_html_footer> ----------------------------------------- 'doc_include_html' in 'Folder2' has the following code ----------------------------------------- <dtml-var standard_html_header> <h2><dtml-var title_or_id></h2> <p>doc include Folder 2</p> <dtml-var standard_html_footer> ----------------------------------------- index_html has the following code: ----------------------------------------- <dtml-var standard_html_header> <h2><dtml-var title_or_id></h2> <p> This is the <dtml-var id> Document. Image: <img src=img1> size: <dtml-var "img1.getSize()"><br> Text: <dtml-var doc_include_html> </p> <dtml-var standard_html_footer> ----------------------------------------- when you call the URL http://localhost:8080/Folder1/Folder2 you see: This is the index_html Document. Image: ..... img2.... size: 11111 Text: doc include Folder 1 Why the acquisition get (correctly) Folder1/Folder2/img2 and the get (???) Folder1/doc_include_html instead of Folder1/Folder2/doc_include_html ? If you remove doc_include_html from Folder1 so that may assume: ----------------------------------------- Folder1 index_html Folder2 img1 doc_include_html ----------------------------------------- you see: This is the index_html Document. Image: ..... img2.... size: 11111 Text: doc include Folder 2 Thanks in advance, G.C. _________________________________________________________ Prometeo srl - The Software Experience Coi Giovanni Voice : +39 (041)5701366 Via Giudecca 15 Fax : +39 (041)5701005 30035 MIRANO (VE) - ITALY e-mail: coi@prometeo.it http://www.prometeo.it
From: Coi Giovanni <coi.giovanni@prometeo.it>
Why the acquisition get (correctly) Folder1/Folder2/img2 and the get (???) Folder1/doc_include_html instead of Folder1/Folder2/doc_include_html ?
Your index_html is a DTML Document, right? Make it a DTML Method and all should work as you expect, since Methods operate as though they are contained where they are found. Documents don't, and acquisition searches the direct path to the root before anything else. When you write DTML that you plan to acquire, you almost always want to use DTML Methods. Cheers, Evan @ digicool & 4-am
participants (2)
-
Coi Giovanni -
Evan Simpson