[opencms-dev] Problems including stylesheet in Editor
Wollbold Gerhard , ITS-IT
gerhard.wollbold at dillinger.de
Tue Nov 6 11:14:04 CET 2001
Hi List,
after the release notes to the new 4.4.6 release says that the WYSIWYG
Editor now displays the page using the CSS of the selected template, I tried
the <stylesheet> Tag again.
My master Template looks like this:
<?xml version="1.0"?>
<XMLTEMPLATE>
<stylesheet>content/internal/dh.css</stylesheet>
<TEMPLATE><![CDATA[
<HTML>
<HEAD>
<TITLE>]]><method name="getTitle"/><![CDATA[</TITLE>
<link rel="stylesheet" href="]]>
<method name="getServletPath"/>
<![CDATA[content/internal/dh.css">
</HEAD>
<BODY>
... and so on...
Thats exactly according to the manual. This template produces a working link
to the stylesheet if the page is displayed in the browser. I tried to figure
out how the code that is actualy displayed in the Editor Window looks like.
I opened the Editor in a new window (Ctrl+N) and examined the sourcecode.
Somwhere i found
var
text="%3CHTML%3E%0A%3CHEAD%3E%0A%3Clink%20rel%3Dstylesheet%20type%3D%22text%
2Fcss%22%20href%3D%22%22%3E%0A%3C%2FHEAD%3E....
I think thats the escaped code for the edited page. If you unescape the
Header, you get
<HEAD><link rel=stylesheet type="text/css" href=""></HEAD>
I think that this line ist the output of the <stylesheet>-Tag in the
master-template. Can anybody tell me why the "href" remains empty ?
thanks in advance,
regards,
Gerhard
---------------------------------------------
Gerhard Wollbold
ITS-IT
AG der Dillinger Hüttenwerke
Tel: 06831 / 47 - 3979
Fax: 06831 / 47 - 3505
More information about the opencms-dev
mailing list