[opencms-dev] Newbie: problem including files stored in module resources

Arian Abrahantes Quintana Arian.Abrahantes.Quintana at cern.ch
Tue May 8 10:56:09 CEST 2007


Dear all:

>From my previous post you can see I am a newbie to opencms 6. At the moment I am trying to import a layout from opencms  5 to 6. I followed the instructions on the manual pages (quite usefull) for migration issues. I make all the changes needed to get my template working (package definition mainly) everything fine but when in my template when I request the style sheet (under resources) I can not load it. This is the piece of code:



String resPath = "/system/modules/org.opencms.mymodule/resources/";

....

<link rel="stylesheet" type="text/css" href="<%= resPath + "style.css" %>">

Page Contents are diplayed right but no style applied.

any help would be appreciated. TIA,

arian

PS: Is there some problem with the mailing list search engine at opencms.org?. I always get an error when press "go" but when the result is blank. Is this only happening to me?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3131 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070508/c09ac4eb/attachment.bin>


More information about the opencms-dev mailing list