[TYPO3] newbi: multi-lang content
a owen
aowen at swissonline.ch
Fri Feb 2 23:59:18 CET 2007
Hi
I solved the problem about only displaying one content, forgot some
bracket in ts. but the language problem still prevails.
thanks for help
On Fri, 2007-02-02 at 23:19 +0100, a owen wrote:
> Hi François or anyone else that helps,
>
> Thanks for the tip, I can now display the first content and the language
> never changes. It seams, that only the first CAO-Objet gets replaced
> (tried changing them around).
>
> my language is changed in a other basis template and works for the other
> elements on the page. what i did notice, is that the id (source) of the
> content-elements for each language. maybe that affects it.
>
> here's my template setup field:
>
> # Main TEMPLATE cObject for the BODY
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
> # Feeding the content from the Auto-parser to the TEMPLATE cObject:
> template =< plugin.tx_automaketemplate_pi1
> # Select only the content between the <body>-tags
> workOnSubpart = DOCUMENT_BODY
>
> # Substitute the ###content### subpart with some example content:
> subparts.content < styles.content.get
>
> subparts.headerLinks = PHP_SCRIPT
> subparts.headerLinks.file = fileadmin/php/sprachmenu.php
>
> subparts.menu = PHP_SCRIPT
> subparts.menu.file = fileadmin/php/menu.php
>
> subparts.discTxt = COA
> subparts.discTxt {
> 10 = RECORDS
> 10 {
> tables = tt_content
> source = 23
> }
>
> subparts.discTitle = COA
> subparts.discTitle {
> 10 = RECORDS
> 10 {
> tables = tt_content
> source = 22
> }
> }
>
>
> On Fri, 2007-02-02 at 14:48 +0100, Francois Suter wrote:
> > Hi,
> >
> > > i've got a template with several sub-templates. in one of these
> > > templates (footer) i want to include 2 table rows (<tr>) with text
> > > content. it has to be multi-lang capable. what is the easiest way
> > > to do
> > > this? i just cant imagine that i have to write a plugin for
> > > something so
> > > basic. and i do what would it have to contain?
> >
> > Create content elements with their translations. Then insert them
> > into your template using TypoScript using a RECORDS object. This will
> > automatically fetch your content elements in the right language.
> >
> > HTH
> >
> > François Suter
> > Directeur technique
> > ------------------------------------------------------------------------
> > -------------------------------------------------------------
> > Cobweb Development Sàrl
> > www.cobweb.ch
> >
> > 13 février 2007 à 16h30: Cobweb au 1er Forum E-Marketing (Paris)
> > Cobweb vous invite à assister à la conférence "cobweb-store: solution
> > e-commerce 2.0 avec CMS et ERP" lors du 1er Forum E-MARKETING qui a
> > lieu du 12 au 13 février à Paris (Cité des Sciences).
> > Plus d'informations: http://www.cobweb.ch/forum-emarketing/
> >
> > L'entrée au Forum et aux conférences est gratuite!
> > ------------------------------------------------------------------------
> > -------------------------------------------------------------
> >
> >
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
> _______________________________________________
> 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