Zum Inhalt springen

Typoscript komplett

Erstellt am 15. November 2005 · 7 Antworten · letzte Antwort am 16. November 2005

Tags: Frage

quetschi ·

Kann mir jemand helfen mit meinem Script ??
Ich weiss nicht wo der Wurm drinne ist... :o

Vielen Dank!!

______________________

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/holzreiter-org/template.html

# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY

HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER

TD.all = 1
}

# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/

}


# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY

# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1

# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
}


# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}


# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu1-level1-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}

# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

quetschi ·
wunschtacho schrieb

Vielleicht solltest du mal schreiben, was nicht funktioniert!?

Sorry,

also ich sehe nix auf der Seite.
D.h. der header wird offensichtlich eingefügt. Und das BodyTag wird auch noch generiert mit der bgcolor. Aber zwischen den BodyTags bringt er keinen DOCUMENT_BODY

hier nochmal mein aktuelles Typoscript:

______________________________________________

plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/template/holzreiter-org/template.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}

relPathPrefix = fileadmin/template/holzreiter-org/
}

temp.menu_1 = HMENU
temp.menu_1.1 = TMENU
temp.menu_1.1 {
NO.allWrap = <div class="menu1-level1-no"> | </div>
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}

temp.menu_1.2 = TMENU
temp.menu_1.2 {
NO.allWrap = <div class="menu1-level2-no"> | </div>
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.menu_1 < temp.menu_1

subparts.content < styles.content.get
}

temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}

page = PAGE
page.typeNum = 0
page.bodyTag = <body bgcolor="#bfbfbf">
page.stylesheet = fileadmin/template/holzreiter-org/res/stylesheet.css
page.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate

________________________________________

hier meine html-Template:

_________________________________________

<html>
<head>

<meta http-equiv="Page-Enter" content="blendTrans(Duration=1)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=1)" />

<!--###DOCUMENT_HEADER### begin -->

<!--###DOCUMENT_HEADER### end -->

</head>

<body>
<!--###DOCUMENT_BODY### begin -->

<table width="726" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#000000">
</td>
</tr>
<tr>
<td bgcolor="#000000">
<table width="724" height="270" border="0" background="images/Holzreiter-org.jpg" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td colspan="5">
<table cellpadding="0" cellspacing="0">
<tr>
<td width="10">
</td>
<td class="voruhr">
</td>
<td id="Uhrzeit" class="uhr"> 
</td>
<td width="20">
</td>
<td class="voruhr">
</td>
<td id="Uhrzeit1" class="uhr"> 
</td>
<td width="20">
</td>
<td class="voruhr">
</td>
<td id="Uhrzeit" class="uhr"> 
</td>
<td width="20">
</td>
<td class="voruhr">
</td>
<td id="Uhrzeit" class="uhr"> 
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="41" width="144" align="center" background="images/but01.gif" class="box1"><a href="index.htm" class="box1">HOME</a></td>
<td height="41" width="144" align="center" background="images/but02.gif" class="box2"> </td>
<td height="41" width="144" align="center" background="images/but03.gif" class="box2"> </td>
<td height="41" width="144" align="center" background="images/but04.gif" class="box2"> </td>
<td height="41" width="144" align="center" background="images/but05.gif" class="box2"> </td>
</tr>
</table>
</td>
</tr>

<tr>
<td bgcolor="#000000" align="center" valign="top">
<table width="724" cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="menu_1" width="144" bgcolor="#F1F1F1" height="300" align="left">
<!--###menu_1### begin -->

<p style="margin-top:20;">
<div style="margin-left:12">your IP-Adress:</div>
<div align="left">
<script type="text/javascript"><!--
ip_width = 110;
ip_color_bg = "f1f1f1";
ip_color_text = "042039";
//--></script>
<script type="text/javascript" src="http://meineipadresse.de/ip/js_b.php">
</script>
</div>
</p>
<!--###menu_1### end -->

</td>
<td width="1" rowspan="2" bgcolor="#000000"></td>

<!-- Page Content Area table cell: -->
<td id="content" rowspan="2" width="574" bgcolor="#ffffff" valign="top">
<!--###content### begin -->

<!--###content### end -->

</td>
<td width="10" rowspan="2" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="12" width="144" bgcolor="#F1F1F1" align="center" valign="top"><a href="http://www.holzreiter.org" class="footerlink">© Tobias Holzreiter 2005</a>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td height="1" bgcolor="#000000">
</td>
</tr>
</table>

<!--###DOCUMENT_BODY### end -->

</body>

</html>

____________________________________________

Der Autoparser ist auch installiert und Typo ist die neueste Version 3.8 ?? bei 1und1 im Business Paket sozusagen vergewaltigt ;-)

besten Dank !!

_o3_ ·

gibt es denn nen link zur seite?
hast du denn auch bei deinem template (css_styled_content, oder ähnliches eingefügt?)

quetschi ·
_o3_ schrieb

gibt es denn nen link zur seite?
hast du denn auch bei deinem template (css_styled_content, oder ähnliches eingefügt?)

link ist http://www.mws-it.org

habe alle sachen schon eingefügt gehabt bei den include static dingsbums...
Die seite ist ja nicht leer sondern der body-tag wird noch übernommen und dann verliesen sie ihn...
ich glaube, dass etwas mit meinem Typoscript nicht stimmt. Irgendetwas scheint er nicht zu blicken. ich habe ja schonmal während dem aufbau meine seite gesehen. ab dem einfügen der temp.xy dinger ging nixmehr..
kanns sein dass das bei 1und1 nicht funzt ? brauch man vielleicht eine erweiterung noch ??
geparst hat er wohl schonmal denn ich in meinem Quelltext der Seite die document_body dinger schonmal doppelt gesehen...

Danke für Eure Hilfe und Ideen !!!!

erzengel ·

sorry der typo3 code ist ein bissel schwer. Aber ich würde mal behaupten falsche Anordnung des Codes?

plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/template/holzreiter-org/template.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}

relPathPrefix = fileadmin/template/holzreiter-org/
}

subparts.content < styles.content.get
}

temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}

#änderung hier#
temp = PAGE
temp.typeNum = 0
temp.bodyTag = <body bgcolor="#bfbfbf">
temp.stylesheet = fileadmin/template/holzreiter-org/res/stylesheet.css
temp.headerData.10 < temp.headTemplate
main.10 = TEMPLATE
main.10 {
template=Template
template=< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
marks.CONTENT = CONTENT
marks.CONTENT < styles.content.get
marks.MENU_1 = HMENU
marks.MENU_1.1 = TMENU
...
...
}
#ende änderung#

Ich habe nicht so viel ahnung von dem code aber irgendwie so denk ich.

plugin.tx_automaketemplate_pi1 läuft aber glaub ich nicht mit marks und workonsubparts.

Du hast die Marker nicht gross geschrieben im COde 😉.