Hallo zusammen,
bin ganz neu hier im Forum und freue mich auf hilfreiche Hinweise zu folendem Problem (ich verzweifel schon seit Tagen daran):
Ich möchte unterhalb einer Subnavigation (Spalte LINKS) weitere dynamische Inhalte einfügen und anzeigen. Das entsprechende Vorlagendokument (HTML) ist aus meiner sicht richtig vorbereitet.
Nun scheint es so, dass ich einen Fehler im TypoScript habe, kann diesen aber beim besten Willen nicht finden. Als Hinweis ich verwende den Templateselector (die ext. automaketemplate), könnte da vielleicht das Problem liegen?
Als Muster habe ich einmal eine Testunterseite erstellt:
http://www.tk-moelln.de/verein/test.html
Wäre echt super gut, wenn ich hier von den Zahlreichen Teilnehmern eine Lösung genannt bekäme.
Viele Grüße
Mathias (Pingu)
Das TypoScript sieht wie folgt aus:
1. Home Page Te
mplate
# ALWAYS MAKE A BACKUP OF THIS CONTENT BEFORE MAKING CHANGES HEREIN
# --- CREATE THE MAIN PAGE OBJECT -------------------------------------------
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate
page.headerData.20 < temp.headTemplateCA
page.headerData.999 < plugin.meta
plugin.tx_rlmptmplselector_pi1 {
defaultTemplateFileNameMain = template_1.html
defaultTemplateFileNameSub = ct_1.html
templateType = main
templatePathMain = fileadmin/template/main/
templatePathSub = fileadmin/template/sub/
}
# -- Remove non-valid chars from <body>
page.bodyTag = <body>
# -- Set your locale and language here
#config.locale_all = de_DE
#config.language = de
# -------------------------------------------------------------------------------------
# -- Uncomment the following lines, to protect email adresses from spam
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)
# -------------------------------------------------------------------------------------
# -- Uncomment the following lines, if your Web server supports
# -- REWRITERULE statements in .htaccess, to allow Typo3 to create friendly/
# -- easy to remember URLs (i.e. "support.html" instead of "index.php?id=30")
#config.simulateStaticDocuments = 1
#config.simulateStaticDocuments_noTypeIfNoTitle = 1
#config.simulateStaticDocuments_pEnc = base64
#config.simulateStaticDocuments_pEnc = md5
#### REAL-URL ####
config.simulateStaticDocuments = 0
#ACHTUNG: naechste Zeile Leerzeichen in der URL entfernen
config.baseURL = http://www.tk-moelln.de/
config.tx_realurl_enable = 1
# -------------------------------------------------------------------------------------
# -- If you need to add additional comments to the HTML page output,
# -- unremove the next line and adjust the comment respectively
#config.headerComment = TKM - Tennis-Klub Mölln, 2008
page.config.index_enable = 1
page.config.admPanel=1
# -- Remove margins and other styles from <p> set by Typo3
tt_content.header.stdWrap.space = 0|0
tt_content.stdWrap.space = 0|0
tt_content.stdWrap.dataWrap =
lib.stdheader.stdWrap.space = 0|0
# -- Remove BRs from headers
lib.stdheader.10.stdWrap.wrap = |
# -- Turn <h5> back to a text header
lib.stdheader.10.5 = TEXT
lib.stdheader.10.5.field = header
lib.stdheader.10.5.wrap = <h5>|</h5>
lib.stdheader.10.5.ATagBeforeWrap = 0
lib.stdheader.10.5.linkWrap = |
tt_content.text.20.parseFunc.tags.typolist.default.wrap = <ul> | </ul>
tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap =
tt_content.text.20.parseFunc.tags.typolist.1.fontTag = <ol> | </ol>
tt_content.text.20.parseFunc.tags.typolist.1.split.1.wrap =
tt_content.search.20 < styles.content.searchform
tt_content.search.30 < styles.content.searchresult
# --------------------------------------------------------------------------------------------------
# -- Adjust extension parameters like your E-mail and Name, css styles etc., if necessary
plugin.tt_poll.code = VOTEFORM
plugin.tt_poll.inProgressObj.value = The poll ends on ###ENDTIME###.
plugin.tt_poll.inProgressObj.wrap = <tr><td>|</td></tr>
plugin.tt_poll.resultItemObj.10.wrap = <tr><td nowrap=""> |</td></tr>
plugin.tt_poll.resultItemObj.20.value = <tr><td nowrap=""><img src="{$plugin.tt_poll.beginBarImgFile}" align="absmiddle" height="20" width="7" alt="" /><img src="{$plugin.tt_poll.mainBarImgFile}" align="absmiddle" height="20" width="###POLLWIDTH###" alt="###PERCENT### %" /><img src="{$plugin.tt_poll.endBarImgFile}" align="absmiddle" height="20" width="7" alt="" />
plugin.tt_poll.resultItemObj.30.value = ###PERCENT### % (###ITEMVOTES### votes)
plugin.tt_poll.resultItemObj.wrap =
plugin.tt_poll.resultObj.10.value = Poll results
plugin.tt_poll.resultObj.10.wrap = <tr><td class="polltitle" align="center">|</td></tr>
plugin.tt_poll.resultObj.20.wrap = <tr><td align="center"><br />|<br /><br /></td></tr>
plugin.tt_poll.resultObj.40.value = ###TOTALVOTES### votes in total
plugin.tt_poll.resultObj.40.wrap = <tr><td><br />|<br /></td></tr>
plugin.tt_poll.resultObj.50.value = ###PROGRESSMSG### ###VOTEMSG###
plugin.tt_poll.resultObj.wrap = <table cellspacing="0" cellpadding="5" border="0" width="300" align="middle" class="pollresult">|</table>
plugin.tt_poll.submittedVoteObj.value = You voted for: <b>"###SUBMITTEDVOTE###"</b>.
plugin.tt_poll.submittedVoteObj.wrap = <tr><td><br />|<br /></td></tr>
plugin.tt_poll.voteform.COMMENT.layout = <p>###LABEL###</p>
plugin.tt_poll.voteform.fieldWrap.wrap = |
plugin.tt_poll.voteform.layout = ###FIELD###
plugin.tt_poll.voteform.locationData = false
plugin.tt_poll.voteform.redirect.field =
plugin.tt_poll.voteform.stdWrap.innerWrap.cObject.10.textStyle.altWrap = <span class="pollcontent">|</span>
plugin.tt_poll.voteform.stdWrap.innerWrap.cObject.10.value = Survey
plugin.tt_poll.voteform.stdWrap.innerWrap.cObject.10.wrap = <p class="polltitle">|</p>
plugin.tt_poll.voteform.stdWrap.innerWrap.cObject.20.textStyle.altWrap = <p>|</p>
plugin.tt_poll.voteform.stdWrap.innerWrap.cObject.20.wrap = |
plugin.tt_poll.voteform.stdWrap.wrap = <div class="poll"> | </div>
plugin.tt_poll.voteform.target = _top
plugin.tt_poll.voteform.type = 37
plugin.tx_sklinklist_pi1.showLinks.viewStyle.1.visible.rating = 0
plugin.tx_sklinklist_pi1.showLinks.viewStyle.2.visible.rating = 0
plugin.tx_sklinklist_pi1.showLinks.viewStyle.1.visible.header = 0
plugin.tx_sklinklist_pi1.showLinks.tableContentStyle =
plugin.tx_sklinklist_pi1.showLinks.tableStyle = width=100%
plugin.tx_sklinklist_pi1.showExpandedTree.elementWrap.in = <span style="padding-left:1em"><strong>
plugin.tx_sklinklist_pi1.showExpandedTree.elementWrap.out = </strong></span><br />
plugin.tx_sklinklist_pi1.showLinks.tableAlign = left
plugin.tx_sklinklist_pi1.showLinks.tableStyle = float:none;padding-left:2em;
tt_content.mailform.20.layout = <tr><td align="right" width="150">###LABEL###</td><td><img src="clear.gif" width="{$styles.content.mailform.border}" alt="" /></td><td>###FIELD###</td></tr>
plugin.tx_cctypotagtooltip_pi1.overlibCaption = 1
plugin.tx_danewslettersubscription_pi1.email_from = noreply@meinedomain.de
plugin.tx_danewslettersubscription_pi1._CSS_DEFAULT_STYLE =
plugin.tx_macinasearchbox_pi1.pidSearchpage = 41
plugin.tx_macinasearchbox_pi1.templateFile = fileadmin/extension_files/searchbox_template.html
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE >
plugin.tx_ccvscroller_pi1._CSS_DEFAULT_STYLE >
plugin.tx_csvtable_pi1.separator = ,
plugin.tx_csvtable_pi1.showEmptyRows = 1
plugin.tx_csvtable_pi1.enableTitle = 1
plugin.tt_news.useStoragePid = 0
plugin.tt_news.title_stdWrap.wrap =
plugin.tt_news.displaySingle.caption_stdWrap.wrap = <span class="subhead3"> | </span>
plugin.tt_news.templateFile = fileadmin/extension_files/news_template.html
plugin.tt_news.wrap1 =
plugin.tt_news.wrap1.wrap = <em>|</em>
plugin.tt_news.wrap2 =
plugin.tt_news.wrap2.wrap = <span style="font-size:90%">|</span>
plugin.tt_news.wrap3 =
plugin.tt_news.wrap3.wrap =
plugin.tt_news.displayList.caption_stdWrap.wrap =
plugin.tt_news.displayList.author_stdWrap.wrap =
plugin.tt_news.displayList.caption_stdWrap.wrap =
plugin.tt_news._CSS_DEFAULT_STYLE >
plugin.tt_news._LOCAL_LANG.default.backToList = « Back to the archive
plugin.tt_news.general_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=
}
plugin.tipafriend.templateFile = fileadmin/extension_files/tipafriend_template.html
plugin.tx_indexedsearch._LOCAL_LANG.default {
rules_text = Valid operators are AND, OR and NOT. Use "" to search for whole strings
rules_header = Tip:
}
styles.content.searchform < styles.content.mailform
styles.content.searchform {
stdWrap.wrap = <table border="0" cellspacing="0" cellpadding="3"> | </table>
layout = <tr><td valign="top" nowrap="" width="100">###FIELD###</td></tr>
goodMess >
redirect >
recipient >
data >
dataArray {
10.type = sword=input
10.value =
20.type = scols=hidden
20.value = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption :tt_news.title-bodytext:tt_address.name-title-address-email-company-city-country
30.type = stype=hidden
30.value = L0
40.type = submit=submit
40.value = Search
}
type.field = pages
type.listNum = 0
locationData = HTTP_POST_VARS
no_cache = 1
}
tt_content.text.20.parseFunc {
nonTypoTagStdWrap.encapsLines.nonWrappedTag >
nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = <p>|</p>
}
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=;
}
# Bullet list settings
tt_content.bullets.20.default.wrap = <ul>|</ul>
tt_content.bullets.20.default.split.1.wrap = <li>|</li>
tt_content.bullets.20.2.wrap = <ol>|</ol>
tt_content.bullets.20.2.split.1.wrap = <li>|</li>
tt_content.bullets.20.3.wrap = <ul>|</ul>
tt_content.bullets.20.3.split.1.wrap = <li>|</li>
tt_content.text.20.parseFunc.tags.typolist.default.wrap = <ul> | </ul>
tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap = <li>|</li>
tt_content.text.20.parseFunc.tags.typolist.1.fontTag = <ol> | </ol>
tt_content.text.20.parseFunc.tags.typolist.1.split.1.wrap = <li>|</li>
2. Extension Template
# Adjust Autoparser settings
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
content.defaultTemplateFileName = template_1.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
TR.all = 1
DIV.all = 1
}
relPathPrefix =
}
# Create basic menu
temp.topmenu_1 = HMENU
temp.topmenu_1.entryLevel = 0
temp.topmenu_1.1 = TMENU
temp.topmenu_1.1 {
NO.linkWrap = <td valign="middle" class="menu1-level1-no">| </td> |*| <td valign="middle">|</td><td valign="middle" class="menu1-level1-no"> | </td> |*| <td valign="middle">|</td><td valign="middle" class="menu1-level1-no"> | </td>
ACT = 1
ACT.allWrap = <td valign="middle" class="menu1-level1-act">| </td> |*| <td valign="middle">|</td><td valign="middle" class="menu1-level1-act"> | </td> |*| <td valign="middle">|</td><td valign="middle" class="menu1-level1-act"> | </td>
}
# Create submenu
temp.submenu_1 = HMENU
temp.submenu_1.entryLevel = 1
temp.submenu_1.1 = TMENU
temp.submenu_1.1 {
NO.allWrap = <tr><td class="menu2-level1-no"> | </td><td class="menu2-level1-no" width="10"><img src="/fileadmin/template/images/um_bullet.gif" width="5" height="9" alt="" /></td></tr>
ACT = 1
ACT.allWrap = <tr><td valign="middle" class="menu2-level1-act"> | </td><td class="menu2-level1-act" width="10"><img src="/fileadmin/template/images/um_bullet.gif" width="5" height="9" alt="" /></td></tr>
}
temp.submenu_1.2 = TMENU
temp.submenu_1.2 {
NO.allWrap = <tr><td class="menu2-level2-no"> | </td><td class="menu2-level1-no" width="10"> </td></tr>
ACT = 1
ACT.allWrap = <tr><td class="menu2-level2-act"> | </td><td class="menu2-level1-act" width="10"> </td></tr>
}
# Adjust content area
temp.contentArea = TEMPLATE
temp.contentArea {
template < plugin.tx_automaketemplate_pi1
template.content.templateType = sub
template.content.defaultTemplateFileName = ct_1.html
template.relPathPrefix =
template.elements >
template.elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title, style
DIV.all = 1
TD.all = 1
}
workOnSubpart = contentsection
subparts {
RMAIN < styles.content.get
RLEFT < styles.content.getLeft
RRIGHT < styles.content.getRight
}
subparts.LASTUPDATE = TEXT
subparts.LASTUPDATE {
data = page:lastUpdated
if.isTrue.data = page:lastUpdated
date = d.m.Y
wrap = Letzte Änderung: |
data = register : SYS_LASTCHANGED
if >
}
}
# Put page together
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.topmenu_1 < temp.topmenu_1
subparts.submenu_1 < temp.submenu_1
subparts.contentsection < temp.contentArea
}
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}
temp.headTemplateCA = TEMPLATE
temp.headTemplateCA {
template < temp.contentArea.template
workOnSubpart = DOCUMENT_HEADER
}