<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You have to modify all links by using the opencms link management.<br>
This can be done by putting <cms:link></cms:link> around
any url of your links or by invoking<br>
CmsJspactionElement.link(...) for the link urls, before writing them
into your page.<br>
<br>
Therefore, your example should more properly be expressed as either<br>
<pre wrap=""> <%@ taglib prefix="cms" uri="<a
href="http://www.opencms.org/taglib/cms%22">http://www.opencms.org/taglib/cms"</a> %>
<cms:link>/system/modules/org.opencms.mymodule/resources/style.css</cms:link></pre>
or<br>
<pre> <jsp:useBean id="cms" class="org.opencms.jsp.CmsJspActionElement">
<% cms.init(pageContext, request, response); %>
</jsp:useBean></pre>
<pre wrap=""> String resPath = "/system/modules/org.opencms.mymodule/resources/";
<link rel="stylesheet" type="text/css" href="<%= cms.link( resPath + "style.css" ) %>">
</pre>
<br>
The reason for this is, that you must help opencms so that it can
re-write links automatically, to handle things like static export<br>
See the Alkacon taglib and scriptlet documentation for details<br>
<br>
regards<br>
christian<br>
<blockquote
cite="midF6C0D4E3A7919A4FB25CD7226A18A5462A5385@cernxchg50.cern.ch"
type="cite">
<pre wrap="">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?
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<br>
</body>
</html>