Hello all, have a small question. Imagine you have the following folder structure in Zope: http://testserver.pclaerhout.com/index_html http://testserver.pclaerhout.com/resources/standard_header http://testserver.pclaerhout.com/resources/standard_footer How can I reference the standard_header document (which is in a subdirectory) from the index_html document, for example using a <dtml-var standard_header>?? I have the same question if the files in the subdirectory are for example SQL methods. I'm just looking for a way to separate different kinds of documents. Kind regards, Pieter
try : <dtml-with resources> <dtml-var standard_header> </dtml-with> -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com on Tuesday, November 14, 2000 Pieter Claerhout wrote : PC> Hello all, PC> have a small question. Imagine you have the following folder structure in Zope: PC> http://testserver.pclaerhout.com/index_html PC> http://testserver.pclaerhout.com/resources/standard_header PC> http://testserver.pclaerhout.com/resources/standard_footer PC> How can I reference the standard_header document (which is in a subdirectory) from the index_html document, for example using a <dtml-var standard_header>?? I have the same question if the files PC> in the subdirectory are for example SQL methods. I'm just looking for a way to separate different kinds of documents.
Sounds like you want Shane Hathaway's Transparent Folder product... cheers, Chris Pieter Claerhout wrote:
Hello all,
have a small question. Imagine you have the following folder structure in Zope:
http://testserver.pclaerhout.com/index_html http://testserver.pclaerhout.com/resources/standard_header http://testserver.pclaerhout.com/resources/standard_footer
How can I reference the standard_header document (which is in a subdirectory) from the index_html document, for example using a <dtml-var standard_header>?? I have the same question if the files in the subdirectory are for example SQL methods. I'm just looking for a way to separate different kinds of documents.
Kind regards,
Pieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
You could use: <dtml-with resources> <dtml-var standard_header> </dtml-with> I would suggest, however, to reorganize your design and to put index_html in a subfolder of a folder where standard-header and standard_footer reside and let acquisition take care of the work. cb
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Pieter Claerhout Sent: dinsdag 14 november 2000 10:52 To: 'zope@zope.org' Subject: [Zope] Referecing items in subfolders
Hello all,
have a small question. Imagine you have the following folder structure in Zope:
http://testserver.pclaerhout.com/index_html http://testserver.pclaerhout.com/resources/standard_header http://testserver.pclaerhout.com/resources/standard_footer
How can I reference the standard_header document (which is in a subdirectory) from the index_html document, for example using a <dtml-var standard_header>?? I have the same question if the files in the subdirectory are for example SQL methods. I'm just looking for a way to separate different kinds of documents.
Kind regards,
Pieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I would have thought the <dtml-with resources> way was possibly a more flexible way of organizing things such that instead of making a base product that people duplicate and customize, all you need to do is set custom resource folders for each person and load these into the name space of the single instance of the product to give it a custom skin or user specific data. It is also why most of my base product are methods that can't hold any properties that may get clobbered. I tend to place headers in these user resource directories so that they can make them as fancy as they want. Acquisition works nicely that way. matt "Cornelis J. de Brabander" wrote:
You could use:
<dtml-with resources> <dtml-var standard_header> </dtml-with>
I would suggest, however, to reorganize your design and to put index_html in a subfolder of a folder where standard-header and standard_footer reside and let acquisition take care of the work. cb
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Pieter Claerhout Sent: dinsdag 14 november 2000 10:52 To: 'zope@zope.org' Subject: [Zope] Referecing items in subfolders
Hello all,
have a small question. Imagine you have the following folder structure in Zope:
http://testserver.pclaerhout.com/index_html http://testserver.pclaerhout.com/resources/standard_header http://testserver.pclaerhout.com/resources/standard_footer
How can I reference the standard_header document (which is in a subdirectory) from the index_html document, for example using a <dtml-var standard_header>?? I have the same question if the files in the subdirectory are for example SQL methods. I'm just looking for a way to separate different kinds of documents.
Kind regards,
Pieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Sure, but the setup you sketch is different in design than Pieter's. He just wanted to organize 'different kinds of documents'. cb
-----Original Message----- From: matt@zope.org [mailto:matt@zope.org]On Behalf Of Matt Sent: dinsdag 14 november 2000 13:09 To: zope@zope.org Subject: Re: [Zope] Referecing items in subfolders
I would have thought the <dtml-with resources> way was possibly a more flexible way of organizing things such that instead of making a base product that people duplicate and customize, all you need to do is set custom resource folders for each person and load these into the name space of the single instance of the product to give it a custom skin or user specific data. It is also why most of my base product are methods that can't hold any properties that may get clobbered. I tend to place headers in these user resource directories so that they can make them as fancy as they want. Acquisition works nicely that way.
matt
"Cornelis J. de Brabander" wrote:
You could use:
<dtml-with resources> <dtml-var standard_header> </dtml-with>
I would suggest, however, to reorganize your design and to put index_html in a subfolder of a folder where standard-header and standard_footer reside and let acquisition take care of the work. cb
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Pieter Claerhout Sent: dinsdag 14 november 2000 10:52 To: 'zope@zope.org' Subject: [Zope] Referecing items in subfolders
Hello all,
have a small question. Imagine you have the following folder structure in Zope:
http://testserver.pclaerhout.com/index_html http://testserver.pclaerhout.com/resources/standard_header http://testserver.pclaerhout.com/resources/standard_footer
How can I reference the standard_header document (which is in a subdirectory) from the index_html document, for example using a <dtml-var standard_header>?? I have the same question if the files in the subdirectory are for example SQL methods. I'm just looking for a way to separate different kinds of documents.
Kind regards,
Pieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Chris Withers -
Cornelis J. de Brabander -
Geir B�kholt -
Matt -
Pieter Claerhout