[TYPO3] Use default content if tt_content is empty
Tapio Markula
tapio.markula at dnainternet.net
Mon Apr 3 10:55:23 CEST 2006
Florian Schupp | former03 wrote:
> Hi Group,
>
> how can i tell typo3 to use some default content if tt_content is empty
> or has not entries for the selected page?
>
> in detail:
> I have an marker "FLASH_SLIDESHOW" which is replaced by the content from
> tt_content where colPos = 3. But that means if the page has no content
> entered, nothing is shown. How can i tell typo3 that if this happens,
> seon default content (some html) should be shown.
>
>
> FLASH_SLIDESHOW = CONTENT
> FLASH_SLIDESHOW {
> table = tt_content
> select.orderBy = sorting
> select.where = colPos = 3
> }
>
>
> thanks
> Florian
try to apply this:
temp.getRight = CONTENT
temp.getRight < styles.content.getRight
temp.getRight {
stdWrap.ifEmpty.cObject = CONTENT
stdWrap.ifEmpty.cObject {
table = tt_content
select {
pidInList = 690
orderBy = sorting
where = colPos = 2
languageField = sys_language_uid
}
}
}
not tested with plugins
More information about the TYPO3-english
mailing list