Zum Inhalt springen

Weitere Dynamische inhalte einfügen

Erstellt am 20. Oktober 2004 · 5 Antworten · letzte Antwort am 20. Oktober 2004

Tags: Templates & Layouts, Frage

MediMan ·

Ich habe/möchte auf einer Seite zwei Inhalte einfügen. In der Spalte "normal" wird mir der Text auch angezeigt (gebaut nach der Modern Templateerstellung Teil1). Wenn ich aber unter "links" oder "rechts" einen Text erstelen will, wird dieser mir nicht angezeigt. Warum?
Hier die Template Setup-Splate von mir (das Fett geschriebene wäre meine Lösung welche aber nicht funzt):

# 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
# Substitute the ###left### subpart with some example content:
subparts.left < styles.content.getLeft

}

Hier der HTML Text von meinem Temlate:
<table style="margin-top:50px" align="center" width="800px" border="1" cellpadding="0" cellspacing="0">
<!-- Header image row-->
<tr>
<td height="67" colspan="4"><img src="header_row.jpg"></td>

</tr>
<!-- Menü tabel cells -->
<tr align="center">
<td height="21" colspan="4"> <span class="menu1-level1-no"> <a href="#"><img src="1.jpg" border="none"> Service </a></span> <span class="menu1-level1-no"> <a href="#"><img src="1.jpg" border="none"> Webdesign</a></span> <span class="menu1-level1-act"> <a href="#"><img src="1.jpg" border="none"> Printdesign</a></span> <span class="menu1-level1-no"> <a href="#"><img src="1.jpg" border="none"> Grafikdesign</a></span> <span class="menu1-level1-no"> <a href="#"><img src="1.jpg" border="none"> Kontakt</a></span> <span class="menu1-level1-no"> <a href="#"><img src="1.jpg" border="none"> Login</a></span> </td>

</tr>
<tr>
<td width="120" height="35" bgcolor="#CCDFB7">&nbsp;</td>
<td width="120" height="35" bgcolor="#EAF2E1">&nbsp;</td>
<td width="125" height="35" bgcolor="#F5FAF1">&nbsp;</td>
<td width="500" id="content" style="padding:20px" rowspan="2">
<!-- CONTENT ELEMENT, uid:93/text [begin] -->
<a name="93"></a>
<!-- Text: [begin] -->

<p class="bodytext"><font size="2"><b>xyzxyz</b> </p>
<p class="bodytext">xyzxyz
</p>
<p class="bodytext">xyzxyz
</p>
<p class="bodytext">xyzxyz<a href="typo3/alt_doc.php?edit[tt_content][93]=edit&amp;columnsOnly=bodytext%2C%20rte_enabled&amp;noView=0&amp;returnUrl=%2Findex.php%3Fid%3D53"><img src="t3lib/gfx/edit_fe.gif" width="11" height="12" border="0" align="top" title="Edit bodytext" class="frontEndEditIcons" alt="" title="" /></a></font></p>
<!-- Text: [end] -->
<!-- CONTENT ELEMENT, uid:93/text [end] -->
</td>
</tr>

<tr>
<td height="337" id="links" colspan="3"><!--###links### begin -->&nbsp;<!--###links### end --></td>
<!-- Page Content Area tabel cells -->
</tr>
<tr align="left" bgcolor="#E8E8E8">
<!-- Footer row -->
<td height="20" colspan="4">&nbsp;</td>
</tr>
</table>

Ich hoffe da kann mir jemand bei helfen.

MediMan ·

Hier mal mein ganzes Setup:

page.config.doctype = xhtml_trans
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template-1.htm
# 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
HEAD.rmTagSections = title
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
# Substitute the ###left### subpart with some example content:
subparts.left < styles.content.getLeft
}
# 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
}

# 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>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 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>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

# 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

Ähm.... falls das folgende gemeint ist, dann wohl nicht.
<!-- CONTENT ELEMENT, uid:93/text [begin] -->
<!-- CONTENT ELEMENT, uid:93/text [end] -->

Beim Inhalt Links sieht im HTML so aus:
<!--###left### begin --><!--###left### end -->[/i]