[TYPO3] Automatically include content from default language - SOLUTION
Dmitrii 'Mamut' Dimandt
dmitriid at gmail.com
Sat Feb 24 11:03:45 CET 2007
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