[opencms-dev] CSS files only avaiable in offline project

Nguyen Thu Ha boboha2001 at yahoo.com
Tue Jun 10 11:30:07 CEST 2014


Thanks for answering.
I used the cms:link tag but canot load the css file when running opencms in online mode. 

Best regards.
Ha.


On Tuesday, June 10, 2014 3:53 PM, "Schliemann, Kai" <K.Schliemann at comundus.com> wrote:
 


Hi Ha,
did you use the cms:link tag to load your css file?
E.g:
<link rel="stylesheet" type="text/css" href="<cms:link>%(link.weak:/system/modules/vn.mymodule/resources/css/home.css)</cms:link>" media="screen"/>
 
HTH
Best regards
Kai
 
Von:opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Nguyen Thu Ha
Gesendet: Dienstag, 10. Juni 2014 10:22
An: Filip Kratochvil; 'The OpenCms mailing list'
Betreff: Re: [opencms-dev] CSS files only avaiable in offline project
 
Thanks for the reply.
 
I did everything as you said (published the css file, viewed css file in online mode ). The problem is when running opencms in online mode, website run normal but canot load the css file. 
I dont know what's going on here?
Please help me.
 
On Monday, June 9, 2014 7:10 PM, Filip Kratochvil <filip.kratochvil at nelasoft.cz> wrote:
 
Hi,
 
-          Did you published this css file?
-          Do you see css in workplace, i mean in on-line project?
-          The problem is both files have different URL?
 
Different URL is caused by Static export http://www.opencms-wiki.org/wiki/Static_Export. There is default configuration for images/css/word/PDFs… for static export. If you are in off-line project, files are server directly from database, but if you are in on-line project, this filetypes are server primary from static export folder /export/ from real file system (for better performance).
 
--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz
 
From:opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nguyen Thu Ha
Sent: Friday, June 06, 2014 12:22 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] CSS files only avaiable in offline project
 
Hi,
 
My OpenCms version is 8.5.1. I have a problem with css file. The css file only display in the offline project, not in online.
 
The css’s offline URL is:
/war/opencms/system/modules/vn.mymodule/resources/css/home.css
 
the css's online URL is:
/war/export/system/modules/vn.mymodule/resources/css/home.css
 
Does anyone know what's going on here?
 
Thanks,
 
Ha.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140610/074338f9/attachment.htm>


More information about the opencms-dev mailing list