I try to create a second fallback option for the current page. My current function get the content of the parent page, if my column is empty. But i also need an option if my fallback is empty too. It should goes to the next level (leveluid:-3), if my fallback should be empty as well.
Is there any solution to handle this problem with typoscript?
variables.element = CONTENT
variables.element {
table = tt_content
select {
pidInList.data = page:uid
orderBy = sorting
where = colPos=3
}
# Fallback
stdWrap.ifEmpty.cObject = CONTENT
stdWrap.ifEmpty.cObject {
table = tt_content
select {
pidInList.data = leveluid:-2
orderBy = sorting
where = colPos=3
}
}
# Fallback 2
stdWrap.ifEmpty.cObject = CONTENT
stdWrap.ifEmpty.cObject {
table = tt_content
select {
pidInList.data = leveluid:-3
orderBy = sorting
where = colPos=3
}
}
}
Aucun commentaire:
Enregistrer un commentaire