[Zope] Re: making a static snapshot

Paul Winkler pw_lists@slinkp.com
Fri, 2 May 2003 07:00:24 -0400


On Fri, May 02, 2003 at 02:59:22PM +0200, martin f krafft wrote:
> also sprach Paul Winkler <pw_lists@slinkp.com> [2003.05.01.1508 +0200]:
> > 1) don't use relative URLs,
> > 2) avoid using relative URLs, and
> > 3) get rid of relative URLs.
> 
> sot this (plone) portal I have can be seen through www.ailab.ch, but
> also through www.ifi.unizh.ch/newailab. The point is, the root of
> the tree may freely change, thanks to vhost monsters!
> 
> My problem currently is that I'd like to be able to create links in
> structured text, ideally using / to identify the root of the portal.
> However, "link":/people/krafft, when viewed through
> www.ifi.unizh.ch/newailab will point to
> www.ifi.unizh.ch/people/krafft, which is, of course, a 404.
> 
> so in the above, i have to use relative urls, or can you think of
> another way to do this?

hmmm ok i should have been more specific and less dogmatic. :)

My current strategy is:
relative URLs are OK in CMF content
relative URLs are banned from CMF skin templates

Our CMF content is not typically viewed in many places via acquisition,
so this works.


-- 

Paul Winkler
home:  http://www.slinkp.com
"Muppet Labs, where the future is made - today!"