Hallo,
ich schon wieder... 🙂
Folgendes Problem:
Ich möchte in meiner Seite in dem Marker <!-- ###MYHEAD### --> eine Grafik ausgeben.
In meinem Setup siehts wie folgt aus:
# Default PAGE object:
page = PAGE
page.typeNum = 0
marks.MYHEAD1 = IMAGE
marks.MYHEAD1.file = fileadmin/header.jpg
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/tmplpage.htm
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT_LINKS < styles.content.get
subparts.CONTENT_RECHTS < styles.content.getRight
}
Das HTML Template sieht in etwa so aus:
<body bgcolor="#E4E4E4" background="grafik/index_back.gif" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<!--###DOCUMENT_BODY### start-->
<table width="754" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="754" height="17" background="grafik/blanker.gif" colspan="4"><img src="grafik/blanker.gif" alt="" width="1" height="1" border="0"></td>
</tr>
<tr>
<td width="62" height="15" background="grafik/blanker.gif"><img src="grafik/blanker.gif" alt="" width="1" height="1" border="0"></td>
<td width="323" height="15" background="grafik/blanker.gif" class="normtext" valign="top" align="left">
<!-- ###MYHEAD1###-->
<!--###CONTENT_LINKS### start-->
<!--###CONTENT_LINKS### stop-->
</td>
<td width="37" height="15" background="grafik/blanker.gif"><img src="grafik/blanker.gif" alt="" width="1" height="1" border="0"></td>
<td width="332" height="15" background="grafik/blanker.gif" class="normtext" valign="top" align="left">
<!--###CONTENT_RECHTS### start-->
<!--###CONTENT_RECHTS### stop-->
</td>
</tr>
<tr>
<td width="754" height="13" background="grafik/blanker.gif" colspan="4"><img src="grafik/blanker.gif" alt="" width="1" height="1" border="0"></td>
</tr>
</table>
<!--###DOCUMENT_BODY### stop-->
</body>
Der Content wird wunderbar angezeigt nur das elende Bild nicht. Benutze ich anstatt
marks.MYHEAD1 = IMAGE
marks.MYHEAD1.file = fileadmin/header.jpg
page.5 = IMAGE
page.5.file = fileadmin/header.jpg
wird das Bild angezeigt. Aber auch hier stosse ich auf ein Problem. Wenn ich den Bildpfad/Bildname bei den Constants eintrage (mainimage = fileadmin/header.jpg) und die 2. Zeile dann in page.5.file = {mainimage} ändere wird das Bild auch nich angezeigt o.O
Habt Ihr ne Idee woran das liegen könnte? Ist bestimmt wieder total einfach, nur nach der ganzen Probiererei sehe ich den Wald vor lauter Bäumen nicht. Achja, falls es noch wichtig ist, content (default) und cSet (default) sind im Include static.