So are we saying there is an issue?

There certainly seems to be for me as when running with a VirtualHost (proxy) things break due to the aforementioned URL prefixes.

Regards,

Sean

Jean-Marc Orliaguet wrote:
On 2010-01-14 00:30, Sean Radford wrote:
Hi,

I don't think that

NXP-3916 -themes doesn't find its static resources behind a proxy

and consequently

NXP-4214 -Virtual Hosting issue in WebEngine when using NXThemes

are fixed....

For the JSF interface when org.nuxeo.theme.html.ui.Resources#render(...)
we have the following situations:

No Virtual Host
path = "/nuxeo"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/nxthemes-lib"
nxthemeBasePath = "/nuxeo/site"

Virtual Host
path = "/nuxeo"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/nxthemes-lib"
nxthemeBasePath = "/nuxeo" (ISN'T THIS WRONG?)


For the WebEngine interface when
org.nuxeo.theme.html.ui.Resources#render(...) we have the following
situations:

No Virtual Host
path = "/nuxeo/site/sites"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/nxthemes-lib"
nxthemeBasePath = "/nuxeo/site"

Virtual Host
path = "/nuxeo/site/sites"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/site/sites/nxthemes-lib" (ISN'T THIS WRONG?)
nxthemeBasePath = "/nuxeo/site/sites" (ISN'T THIS WRONG?)

Thoughts?

Sean


Hi,

To start with,
/nxthemes-css and /nxthemes-lib can be shared between sites, since the theme's name, the site's path and the basepath are now included in the URL.

So they could be placed directly under:
- /nuxeo/nxthemes-css/
- /nuxeo/nxthemes-lib/

without any prefix. That would simplify virtual hosting.

nxthemeBasePath is used by the theme editor and the web widgets, it has to point to the base of webengine (/nuxeo/site/ under JBoss, and / under jetty+webengine).

/JM





--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/
t: +44 (0)845 KEY HELP
t: +44 (0)845 539 4357
m: +44 (0)7802 24 24 86

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to