|
|
|
Virtual hosting in CPS
Last modified:
12/13/2006 06:55 AM
Information about paths/urls handling to make it work with virtual hosting
A new URL tool (portal_url), extending the CMF one, has been designed to handle virtual hosting in CPS. The most complex case is when part of the portal is hidden in the URL, and part of the URL is completely virtual, for instance:
Here are the methods to remember and use:
Additional methods handle breadcrumbs. Some object methods can be used too:
You should not use the deprecated skin scripts getBaseUrl.py, getContextUrl.py or getBreadcrumbs.py anymore, but query the tool instead. Also, you should never create URLs by joining the base url and the object rpath, as it will generate incorrect URLs in the case of virtual hosting given above.
Virtual hosting in CPS
More info about existing methods
|
|
|