Created
May 25, 2016 07:48
-
-
Save JLNNN/3fa588b0352260952e54dd3549e98ffb to your computer and use it in GitHub Desktop.
Typoscript: Use default content if column is empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTENT = COA | |
CONTENT { | |
10 = COA | |
10 { | |
10 < styles.content.get | |
10.select.where = colPos = 1 | |
if.isTrue.numRows { | |
# diese Seite überprüfen | |
pidInList = this | |
# in der Tabelle tt_content | |
table = tt_content | |
# SQL: WHERE colPos = 1 | |
select.where = colPos=1 | |
} | |
} | |
15 = COA | |
15 { | |
10 = TEXT | |
10.value = Alles was uns verbindet ... | |
if.isFalse.numRows { | |
# diese Seite überprüfen | |
pidInList = this | |
# in der Tabelle tt_content | |
table = tt_content | |
# SQL: WHERE colPos = 1 | |
select.where = colPos=1 | |
} | |
} | |
wrap = <div class="content">|</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment