Zum Inhalt springen

Kein Inhalt im Content-Bereich

Erstellt am 14. Oktober 2008 · 4 Antworten · letzte Antwort am 14. Oktober 2008

Tags: Templates & Layouts, Inhaltselemente, Frage

sm5610 ·

hallo leute,

ich habe gerade ein template mit markern erstellt und das navi funktioniert auch. wird dort angezeigt, wo ich das haben möchte. allerdings wird der content nicht im content-bereich von meinem template übernommen. liegt wahrscheinlich am typoscript?? das statische template css styled content hab ich schon hinzugefügt, trotzdem funktionierts nicht.

hier mein code:

## D E S I G N
page.stylesheet=fileadmin/css/style.css

## S E I T E N E I N S T E L L U N G E N
page = PAGE
page.typeNum = 0
page.hover = #000000
page.noLinkUnderline = 1
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template/main.html
workOnSubpart = DOKUMENT

## M E N U E
marks.navi=HMENU
marks.navi {
      1 = TMENU
	1 {
		wrap = <ul>|</ul>
		NO = 1
		NO {
			wrapItemAndSub = <li>|</li>
			ATagTitle.field = subtitle // title
			ATagParams = class="menuelink"
		}
		ACT = 1
		ACT < .NO
		ACT.ATagParams = style="color:#d00000;font-size:11pt;font-weight:bold;"
	}
	2 = TMENU
	2 {
		wrap = <ul>|</ul>
		NO = 1
		NO {
			wrapItemAndSub = <li class="klein">|</li>
			ATagTitle.field = subtitle // title
			ATagParams = class="menuelinkklein"
		}
		ACT = 1
		ACT < .NO
		ACT.ATagParams = style="color:#d00000;font-size:9pt;"
	}


## C O N T E N T
marks.content < styles.content.get

}

und mein template:

<html>

<head>
  <title>Radio Tirol</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <link rel="stylesheet" type="text/css" href="fileadmin/css/style.css" />
</head>

<!-- ###DOKUMENT### begin -->

<body topmargin="0" leftmargin="0">

<div id="header">###HEADER###</div>

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="table_nav_content">
	<tr>
		<td style="background-color:#aaaaaa;"> </td>
		<td> </td>
	</tr>
	<tr>
		<td valign="top" id="navi" width="20%">###navi###	
		</td>
		<td valign="top" align="left">
			<table width="80%" border="0" id="table_content">
				<tr>
					<td align="left" id="content">###content###</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<!-- ###DOKUMENT### end -->

</body>
</html>

weiß jemand, was ich falsch mache??

danke!

ente72 ·

Probiere es mal so
marks.content {
table = tt_content <- Tabelle in der die Inhalte abgespeichert sind
select.orderBy = sorting
select.where = colPos = 0 <- gibt die Spalte an die ausgeben werden soll
}

Grüße
Martin

bps-tom ·

1. Vorschlag:
Ich glaube die letzte Klammer im TS ist an der falschen Stelle, verschieb die mal vor den Content-Teil.

und wenn das nicht hilft...
2. Vorschlag:
Versuch mal, in deinem Template, an der Stelle wo der Marker ist,
noch ein Leerzeichen einzufügen.

Gruß,
Tom