Zum Inhalt springen

Titel und Navigation wird im HTML-Template nicht angezeigt

Erstellt am 19. März 2006 · 3 Antworten · letzte Antwort am 19. März 2006

Tags: Frage

glasschristian ·

Hallo habe ein kleines Problem, möchte mittels eines HTML-Templates ein Design für Typo3 machen.

Es zeigt allerdings nur den Hauptcontent an wie kann ich die rechte und linke spalte im Template hinufügen und cerknüpfen. Sowie den Seitentitel, hier sind meine Datein. Unter Template Include Static ist content(default) aktiviert.

Hoffe jemand kann mein Prob lösen

HTML-Template
----------------------------------------------------------------
<!--###document###-->
<div id="all">
<div id="head">
</div>
<div id="navi">
<!--###navi###-->
<a content>
<!--###navi###-->
</div>
<div id="content">
<!--###content###-->
<a content>
hier kommt der Inhalt hin
<!--###content###-->
</div>
<div id="footer">
</div>
</div>
<!--###document###-->
-------------------------------------------------------------

CSS-Datei
-------------------------------------------------------------
p {
margin: 0;
}

#head {
position: absolute;
top: 0;
left: 0;
width: 845px;
height: 85px;
background: green;
}

#navi {
position: absolute;
right: 50px;
top: 22px;
background: red;
width: 152px;
height: 43px;
}

#topmenu {
position: absolute;
left: 22px;
bottom: 10px;
background: black;
}

#all {
position: absolute;
left: 0;
top: 85px;
width: 845px;
height: 154px;
background: yellow;
}

#content {
position: absolute;
top: 295px;
left: 280px;
width: 527px;
background: red;
}

#footersss {
position: absolute;
top: 439px;
left: 0;
background: fuchsia;
width; 240px;
height: 50px%;
}

body, html {
border: 0;
margin: 0;
width: 100%;
height: 100%;
background: orange;
font: normal 100.01% Arial, Helvetic, Verdana, sans-serif;
}

TS-Setup
-------------------------------------------------------------
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/templates/h1.css
page.20 = TEMPLATE
page.20 {
template = FILE
template.file = fileadmin/templates/h1.html
workOnSubpart = document
subparts.content < styles.content.get
subparts.navi = HMENU
subparts.navi.1 = TMENU
}

woida ·

Lies dir mal das PDF unter "Literatur zu Typo3" durch, da wird gezeigt, wie man den Inhalt mit content(default) einbindet.

glasschristian ·

he danke!
hab mich gerade eingelesen leider funktioniert es aber immmer noch nicht

So sieht nun mein TS-Setup aus

TS-SETUP
---------------------------------------------------------------------------
page = PAGE
page.typeNum = 0
page.20 = TEMPLATE
page.20 {
template = FILE
template.file = fileadmin/templates/h1.html
workOnSubpart = document
subparts.content < styles.content.get
subparts.navi = HMENU
subparts.navi.1 = TMENU

}

right = CONTENT
right {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}
page.stylesheet = fileadmin/templates/h1.css

woida ·

subparts.content < styles.content.get

sollte verwendet werden, wenn man CSS Styled Content nutzt.

Dem Right stellst du noch ein "temp." davor und bindest es dann in page.20 ein.
Für deine Haupt-Inhaltspalte mußt du noch einen Abschnitt analog zu right (mit angepaßter colPos) erstellen und den dann dem subpart zuweisen:

subparts.content < temp.content