[Typo3] if empt "styles.content.getRight" use the content Right from the upper level....
Jonas Dübi
admin at commandline.ch
Fri Oct 28 11:47:15 CEST 2005
Hi
If there is no content in the right column of the current page, the
right column of the upper page should be taken, and if there is also no
content in the right column, the next upper level should be taken until
treeLevel = 0.
I built a typoscript which works for a defined amount of levels, but
it's not realy beauty and it gets realy big if you wanna do it for about
6 Levels :-D:
temp.right_content = TEXT
temp.right_content {
cObject = TEXT
cObject.cObject = CONTENT
cObject.cObject {
table = tt_content
select {
pidInList = {leveluid:-2}
pidInList.insertData = 1
orderBy = sorting
where = sys_language_uid={$VAR.currentlangid}
andWhere = colPos=2
}
}
cObject.override.cObject < .cObject.cObject
cObject.override.cObject {
select{
pidInList = {leveluid:-1}
}
}
override.cObject < styles.content.getRight
}
Does someone know a better way to solve this. ( I think slide doesn't
work for this specific situation...)
Greets from Switzerland
PS: Typoscript is like magic sometimes :-D.... I love stdWrap...
More information about the TYPO3-english
mailing list