[TYPO3-german] tt_content.stdWrap.wrap auf bestimmten Seiten leeren
Rico Schäfer
drognanexcata at gmx.de
Fri Apr 13 13:54:23 CEST 2012
Hallo,
ich habe ein kleines problem mit dem Wrap von tt_content.
Ich würde gern auf bestimmten Seiten den wrap leeren und auf anderen
aber nicht.
Nun habe ich dies mit hilfe einer Abfrage versucht zu lösen, aber es
will so recht nicht funktionieren:
[globalVar = TSFE:id = 38]
tt_content.stdWrap.wrap >
[else]
tt_content.stdWrap.wrap = <div class="content"> | </div>
[end]
Dies führt leider nicht zu dem Ergebnis, das ich möchte, sondern leert
den wrap leider immer.
Auch ein anderer Versuch funktionierte nicht:
tt_content.stdWrap.wrap = <div class="content"> | </div>
[globalVar = TSFE:id = 38]
tt_content.stdWrap.wrap >
[gobal]
Jedoch bin ich mir auch noch nicht wirklich sicher, ob ich denn mein
TYPOScript auch richtig sortiert und angeordnet habe. Von daher will ich
auch auch gern mein TS mit anhängen. Vielleicht findet ihr ja darin
einen Fehler, auch wenn ich mir das nicht unbedingt wünschen würde :)
tt_content.stdWrap.wrap = <div class="content"> | </div>
# Plugin-Einstellungen
plugin {
tt_news {
pid_list >
pid_list = 37
singlePid >
singlePid = 25
backPid >
backPid = 38
templateFile >
templateFile = fileadmin/template/tt_news.html
}
}
# Subparts
menuTop = HMENU
menuTop {
special = directory
special.value = 1
1 = TMENU
1 {
noBlur = 1
wrap = <ul> | </ul>
NO = 1
NO {
ATagTitle.field = abstract // description // title
wrapItemAndSub = <li> | </li>
}
CUR = 1
CUR < .NO
CUR.ATagParams = class="active"
ACT = 1
ACT < .CUR
}
}
menuLeft = COA
menuLeft {
stdWrap.required = 1
stdWrap.prepend = TEXT
stdWrap.prepend {
wrap = <div class="leftColumnHeadline"> | </div>
data = leveltitle: 1|1
}
1 = HMENU
1 {
entryLevel = 1
#excludeUidList = 16,18
1 = TMENU
1 {
noBlur = 1
wrap = <div id="menuLeft"><ul> | </ul></div>
NO = 1
NO {
ATagTitle.field = abstract // description // title
wrapItemAndSub = <li> | </li>
stdWrap.wrap = »
}
CUR = 1
CUR < .NO
CUR.ATagParams = class="active"
ACT = 1
ACT < .CUR
}
}
}
# temporär
lastNews = TEXT
lastNews.wrap =
lastPosts = TEXT
lastPosts.wrap =
contentHeadline = TEXT
contentHeadline {
wrap = <div class="contentHeadline"> | </div><div
class="contentSeperator"> </div>
data = leveltitle: 2|1
}
latestNews < plugin.tt_news
latestNews {
code >
code = LATEST
generat_stdWrap >
general_stdWrap.parsefunc.nonTypoTagStdWrap.encapsLines {
removeWrapping = 1
nonWrappedTag >
}
}
[globalVar = TSFE:id = 38]
contentHeadline = TEXT
contentHeadline.wrap =
lastNews = < plugin.tt_news
lastPosts = TEXT
lastPosts.wrap = Test
tt_content.stdWrap.wrap >
[global]
# Haupttemplate
haupttemplate = TEMPLATE
haupttemplate {
template = FILE
template.file = fileadmin/template/template.php
workOnSubpart = BODY
subparts {
MENU_TOP < menuTop
MENU_LEFT < menuLeft
LAST_NEWS < lastNews
LAST_POSTS < lastPosts
LATEST_NEWS < latestNews
CONTENT_HEADLINE < contentHeadline
CONTENT < styles.content.get
}
}
# Seiten-Einstellungen
page = PAGE
page {
config {
language = de
locale_all = de_DE
index_enable = 1
noPageTitle = 2
simulateStaticDocuments = 0
baseURL = xxx
tx_realurl_enable = 1
prefixLocalAnchors = all
inlineStyle2TempFile = 1
metaCharset = utf-8
additionalHeaders = Content-Type:text/html;charset=utf-8
doctypeSwitch = 1
doctype = html_5
spamProtectEmailAdresses = 1
htmlTag_langKey = de
removeDefaultJS = external
}
meta {
keywords.field = keywords
keywords.ifEmpty =
deutsch,deutscher,gaming,clan,gamingclan,server,hosting,serverhosting,minecraft,teeworlds,eona,gamevolution
description.fiel = description
description.ifEmpty = Deutscher Gamingclan seit 2011, inklusive
Serverhosting, Minecraft und Teeworlds u.v.m
robots = index,follow
}
includeCSS {
file1 = fileadmin/template/css/main.css
file2 = fileadmin/template/css/structure.css
file3 = fileadmin/template/css/content.css
file4 = fileadmin/template/css/news.css
}
shortcutIcon = fileadmin/template/img/favicon.ico
headerData.5 = TEXT
headerData.5 {
field = subtitle // title
insertData = 1
wrap (
<meta name="author" content="xxx">
<meta name="email" content="xxx">
<meta name="designer" content="Tyr4nT @ deviantart.com">
<meta name="googlebot" content="index, follow">
<meta name="Revisit-after" content="1 Day">
<meta name="Distribution" content="Global">
<title>|: Gamvolution.de - deutscher Gamingclan seit 2011 -
Serverhosting, Minecraft, Teeworlds - ALPHA v0.2</title>
)
}
10 < haupttemplate
}
Nun hoffe ich darauf, von euch eventuell noch einen anderen Ansatz zu
erfahren.
Vielen Dank im Vorraus,
Rico
More information about the TYPO3-german
mailing list