[opencms-dev] Problems including stylesheet in Editor & getStyles heet

Prestel, Marianne prestel at itiv.uni-karlsruhe.de
Thu Nov 8 10:03:21 CET 2001


Hi List,

I've got exactly the same problem, but no answer! 
In addition: The "getStylesheet" Method (for different Browsers, IE and
Netscape) doesn't work (the "href" also remains empty if I use this method).
Any Hints?

Regards and thanks in advance
Marianne

.....................................
Marianne Prestel
Dipl.-Ing. (FH) 
ITIV - Universitaet Karlsruhe (TH)
Engesserstrasse 5
D-76131 Karlsruhe

Tel.:   +49 721 608 2505
Fax:    +49 721 607 438 
mailto:prestel at itiv.uni-karlsruhe.de
http://www-itiv.etec.uni-karlsruhe.de


-----Ursprüngliche Nachricht-----
Von: Wollbold Gerhard , ITS-IT [mailto:gerhard.wollbold at dillinger.de]
Gesendet: Dienstag, 6. November 2001 11:14
An: opencms-dev at www.opencms.com
Betreff: [opencms-dev] Problems including stylesheet in Editor


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