[Zope] Re. Question on Folder Structure strategy

Andrew Kenneth Milton akm@mail.theinternet.com.au
Mon, 31 Jan 2000 12:46:25 +1000 (EST)


+----[ Jerry Spicklemire ]---------------------------------------------
| Just to second Evan's motion, "site relative" links will make it much
| easier to move the Zope pieces you're building to another Zope instance, if
| and when the time comes. It's pretty painless to simply "Export" a
| subfolder, and then "Import" into another Zope, knowing that everything
| will still work, even though the DNS address, and name (alias), of the host
| has changed.

Why not set a top level property that has the http://hostname/basefolder
location in it.

All your URLS would become 

<a href="<dtml-var BASELOCATION>/relativefolder">Blah</a> 

Move locations, change the property -- everything works.

If you don't set it everything becomes relative to the root.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472                     |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au|