[TYPO3] if/else stdWrap conditional
Wester, Josh
JoshuaWester at creighton.edu
Thu Apr 6 15:36:21 CEST 2006
I am trying to essentially accomplish an if/else in typoscript. I want
SITE_TITLE to return "subtitle : leveltitle:0" unless the current page
is the root page of the site. I have tried various other methods with no
success and came up with following code. This code makes sense to me,
but TYPO doesn't seem to like it. All SITE_TITLE returns is
leveltitle:0.
# Get Site Title
subparts.SITE_TITLE = TEXT
subparts.SITE_TITLE {
data = leveltitle:0
stdWrap.field = subtitle // title
stdWrap.noTrimWrap = || :|
stdWrap.if {
value.data = leveluid:0
equals.field = uid
negate = 1
}
}
I would really appreciate any help anyone can give me.
Thanks,
Josh
More information about the TYPO3-english
mailing list