Paths to files

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Paths to files

pappleby
Hello,

I'm trying to fine tune some bits on my application running within Orbeon. I've come a little unstuck with regards to relative links for non-HTML files.

For instance, I currently need to use the following to correctly link to the CSS file:

<link rel="stylesheet" href="/apps/gazettes/styles/styles.css" />

What I would like to use is:

<link rel="stylesheet" href="/gazettes/styles/styles.css" />

I have the following in my Tomcat server.xml file (my Tomcat knowledge it pretty basic):

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
  <Context docBase="orbeon" path="" />
</Host>

Is what I'm asking actually possible and if so any pointers very welcome (or have I missed something basic?).

Thanks

Paul
Reply | Threaded
Open this post in threaded view
|

Re: Paths to files

venkata subrahmanyam

Hi Paul

We can refer to /apps folder directly with oxf: also from that path using .. we can go back to one folder
I am using as follows

<input type="data" href="oxf:/../Myfolder/myfile.abc"/>


So ,
 you can try
<link rel="stylesheet" href="oxf:/../gazettes/styles/styles.css" />