[TYPO3] Automatically include content from default language - SOLUTION

Tyler Kraft headhunterxiii at yahoo.ca
Sat Feb 24 16:27:55 CET 2007


cool, that's pretty much what I was thinking of when I posted - glad it 
worked out.

:-)







Dmitrii 'Mamut' Dimandt wrote:
> Here's a solution in case anyone needs it. Thanks goes to Tyler Kraft
> for pointing me in the right direction (had to go to templates ->
> analyze and see how styles.content.get works :) )
> 
> temp.rendered_content {
>     10 = COA
>     10 {
>         if.isTrue.numRows < styles.content.get
>         10 < styles.content.get
>     }
> 
>     # If there's no content include it from the default language (with id=0)
>     30 = COA
>     30.if.isFalse.numRows < styles.content.get
>     30 {
>         10 = COA
>         10 {
>             1 = CONTENT
>             1 {
>                 table = tt_content
>                 select.orderBy = sorting
>                 select.where = sys_language_uid=0 AND colPos=0
>             }   
>         }
>     }
> }
> 
> Dmitrii 'Mamut' Dimandt wrote:
>> I have several language versions on the site. If a language version for
>> a page does not exist, it turns up blank. Is there a way to
>> automatically include content from the default language version?
>>
>> Typo 3.8.1
>>
>> Oh. All page titles have been translated into corresponding languages.
>> So, not having any content, thse pages turn up blank :(
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>>   
> 


More information about the TYPO3-english mailing list