[opencms-dev] Includes working Offline but not Online (and the opposite)

Vitor Varalonga varalonga at gmail.com
Sat Jun 17 02:27:25 CEST 2006


Hi all!


I'm having some troubles getting an include call to work on both Online and
Offline modes.
Let me detail this problem... the purpose is to allow any file under my
template to include
a right-side menu whenever the property right-side-menu-uri is filled.
So somewhere on my JSP template I do:

cms.include(cms.property("right-side-menu-uri", "search"));


Consider that my "web files" are located under the folder
/sites/default/testing.
Suppose that I want the file /sites/default/testing/index.html to include
the file right_menu.html loccated in the same folder.
If I set the property right-side-menu-uri on index.html with the value
/sites/default/testing/right_menu.html
it'll work on Offline mode but not on Online. On the other hand if I set i
to /testing/right_menu.html it'll
now work on Online but not on Offline.
Seems like there's some issues with mappings... somehow it seems that while
the root folder on
Offline mode is really the root folder, on onlin it's actually
/sites/default.
Any hints/sugestions on how to solve this problem?
Thanks in advance.


kind regards,
-- 
Vítor Varalonga
CIBERBIT - Produções de Software S.A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060617/9eb15019/attachment.htm>


More information about the opencms-dev mailing list