[Zope-CMF] portal_url() question, relative URL's, Squid
Florent Guillaume
fg@nuxeo.com
Wed, 15 May 2002 10:31:09 +0000 (UTC)
You're looking for portal_url.getRelativeContentURL(object).
(BTW Tres why is there getRelativeUrl which does the same thing ?)
Florent
<Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote:
> Hello,
>
> I have my Zope site rooted under a subdirectory, using Apache and FastCGI.
> And have 2 CMF sites bellow that, such as:
>
> http://mydomain.com/site <- The Zope root
> http://mydomain.com/site/english <- a CMF Site
> http://mydomain.com/site/francais <- another CMF Site
>
> I'm trying to find a method/function that will return either "/site/english"
> or "/site/francais" ... But it looks like there isn't one ?
>
> I've hacked my own for now, but this might be a good and simple addition for
> the next CMF :) I Like to use these when building links in order to help
> browers properly cache certain things (Since with acquisition a given image
> can be called through many URL's, which means the client would cache many
> times the same thing).
>
> I was using absolute_url and things of the sort, but now I'm putting squid
> in place and can't have ANY absolute URL's in there at all.
>
> Any insight into this problem and any possible solutions would be welcome !
>
> Thanks,
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com