Hi,
Can anybody tell me were in Orbeon the javascript/css is added to support for example the datepicker. In the generated HTML I see the following lines, but cant find where these lines are added. <link rel="stylesheet" href="/orbeon/xforms-server/xforms-jscalendar-min.css" type="text/css" media="all"> <script type="text/javascript" src="/orbeon/xforms-server/xforms-jscalendar-min.js"></script> Reason for asking is that we want to be able to make the paths relative or put the js and css files on a Apache server. Is it configurable somewhere? Can I turn the automatically adding off, and add the files myself? We are using Orbeon 3.7 Regards Ramon -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Ramon, Look at the theme*.xpl files in the resources/config directory. The theme files do various processing in xslt. You could alter the theme files to change the path of the JavaScript/ CSS. Have you considered proxying with a web server that will redirect based on the path? The idea is mentioned here, but no examples: http://www.orbeon.com/ops/doc/integration-tuning#your-app-static-files Cheers, Hank On Feb 17, 2009, at 1:16 AM, Ramon de Beijer wrote: > Hi, > > Can anybody tell me were in Orbeon the javascript/css is added to > support for example the datepicker. > In the generated HTML I see the following lines, but cant find > where these lines are added. > > <link rel="stylesheet" href="/orbeon/xforms-server/xforms- > jscalendar-min.css" type="text/css" media="all"> > <script type="text/javascript" src="/orbeon/xforms-server/xforms- > jscalendar-min.js"></script> > > Reason for asking is that we want to be able to make the paths > relative or put the js and css files on a Apache server. > Is it configurable somewhere? Can I turn the automatically adding > off, and add the files myself? > > We are using Orbeon 3.7 > > Regards Ramon > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by RdeBeijer
We have an Apache configuration to do this, which uses mod_cache.
Something along those lines: LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule disk_cache_module modules/mod_disk_cache.so CacheEnable disk / CacheRoot c:/temp RewriteEngine on RewriteCond %{REQUEST_METHOD} GET RewriteRule ^/orbeon/((apps/fr/style|ops|config/theme)/.*\.(gif|png| css|js))$ http://orbeon-server:8080/orbeon/$1 [P] RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/orbeon/xforms-server$ http://orbeon-server:8080/orbeon/ xforms-server [P] RewriteCond %{REQUEST_METHOD} GET RewriteRule ^/orbeon/xforms-server(.+)$ http://orbeon-server:8080/ orbeon/xforms-server$1 [P] With something like this, you do not need to statically know which links Orbeon Forms will serve. -Erik On Feb 17, 2009, at 1:16 AM, Ramon de Beijer wrote: > Hi, > > Can anybody tell me were in Orbeon the javascript/css is added to > support for example the datepicker. > In the generated HTML I see the following lines, but cant find where > these lines are added. > > <link rel="stylesheet" href="/orbeon/xforms-server/xforms-jscalendar- > min.css" type="text/css" media="all"> > <script type="text/javascript" src="/orbeon/xforms-server/xforms- > jscalendar-min.js"></script> > > Reason for asking is that we want to be able to make the paths > relative or put the js and css files on a Apache server. > Is it configurable somewhere? Can I turn the automatically adding > off, and add the files myself? > > We are using Orbeon 3.7 > > Regards Ramon > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |