Hello, I want to create a list of URLs and be able to refer to them throughout Zope. I found I can do that by adding a property to the main page. But how do I create separate folder and be able to call its properties throughout Zope? I want to do that so that if a URL changes I have to update it only once. I don't want to include URLs on the main page because that makes for a monster main property page. <!--#var biscuit--> will turn into http://www.biscuit.com/ throughout Zope if I add it to the property page for the main page. <!--#var References/biscuit--> fails if I create a subfolder called References and add biscuit to its property list. I've gone through all the documentation. I've gone through the mailing list archives. But no go. Or is there a better way to accomplish what I'm trying to do? I want to use ZODB rather than an external database. thank you, Luke Tymowski
Luke Tymowski wrote:
Hello,
I want to create a list of URLs and be able to refer to them throughout Zope. I found I can do that by adding a property to the main page. But how do I create separate folder and be able to call its properties throughout Zope?
I want to do that so that if a URL changes I have to update it only once. I don't want to include URLs on the main page because that makes for a monster main property page.
<!--#var biscuit--> will turn into http://www.biscuit.com/ throughout Zope if I add it to the property page for the main page.
<!--#var References/biscuit--> fails if I create a subfolder called References and add biscuit to its property list.
The closest thing I can think of is adding a DTML document/method in the property folder and calling it with <!--#var "property.myURL"--> -Be well
Luke Tymowski wrote:
Hello,
I want to create a list of URLs and be able to refer to them throughout Zope. I found I can do that by adding a property to the main page. But how do I create separate folder and be able to call its properties throughout Zope?
I want to do that so that if a URL changes I have to update it only once. I don't want to include URLs on the main page because that makes for a monster main property page.
<!--#var biscuit--> will turn into http://www.biscuit.com/ throughout Zope if I add it to the property page for the main page.
<!--#var References/biscuit--> fails if I create a subfolder called References and add biscuit to its property list.
I think that <!--#var "References.biscuit"--> should work. Alternately, you could try <!--#with References--><!--#var biscuit--><!--#/with-->. The problem with <!--#var References/biscuit--> is that it treats References/biscuit as a single entity. The quotes treat it as an expression, where it can then find References as an object through Acquisition. the '.' is an operator (maybe?) that looks for the sub-entity biscuit. Or at least that's how my newbie brain looks at it. Cheers... Bruce -- 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
participants (3)
-
Bruce Elrick -
Luke Tymowski -
Morten W. Petersen