[TYPO3-dev] TCEFORM_flexform & TCEFORM_flexformSheet

Kai Vogel kai.vogel at speedprogs.de
Thu Feb 9 14:10:36 CET 2012


Hi,

@Oliver: I only answer the emails with my webmailer. :-/

@Tomiţă:

With the following setup you can rename all entries in the select field which have a non-empty value:

TCEFORM.tt_content.pi_flexform.9.s_category.catImageMode {
  altLabels {
    0 = First entry
    1 = Second entry
  }
}

Only the first entry "Defined by TypoScript" can not be translated. One idea will be to simply "keep" only the items with a value, but that will disable the configuration via TypoScript:

TCEFORM.tt_content.pi_flexform.9.s_category.catImageMode {
  keepItems = 0,1,2,3,4
}


Best regards
-- 
Kai Vogel



>---- Original Message ----
>From: Tomiţă MILITARU <tomita.militaru at gmail.com>
>To: "List for Core-/Extension development" <typo3-dev at lists.typo3.org>
>Sent: Do, Feb 9, 2012, 12:31 PM
>Subject: Re: [TYPO3-dev] TCEFORM_flexform & TCEFORM_flexformSheet
>
>Thanks for sharing the document!
>
>But I still got one question, for this part of the flexform:
><catImageMode>
><TCEforms>
>
><label>LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.catImageMode</label>
><config>
> <type>select</type>
><items type="array">
> <numIndex index="0" type="array">
><numIndex
>index="0">LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.catLinkMode_TS</numIndex>
> <numIndex index="1"></numIndex>
></numIndex>
> <numIndex index="1" type="array">
><numIndex
>index="0">LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.catLinkMode_dontshow</numIndex>
> <numIndex index="1">0</numIndex>
></numIndex>
> <numIndex index="2" type="array">
><numIndex
>index="0">LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.catLinkMode_shownolink</numIndex>
> <numIndex index="1">1</numIndex>
></numIndex>
> <numIndex index="3" type="array">
><numIndex
>index="0">LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.catLinkMode_catshortcut</numIndex>
> <numIndex index="1">2</numIndex>
></numIndex>
> <numIndex index="4" type="array">
><numIndex
>index="0">LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.catLinkMode_catsel</numIndex>
> <numIndex index="1">3</numIndex>
></numIndex>
> </items>
><minitems>0</minitems>
><maxitems>1</maxitems>
> <size>1</size>
></config>
></TCEforms>
> </catImageMode>
>
>I would like to change the label values in items, for example replace all
>labels from locallang_tca.xml with values in page tsconfig.
>So far:
>TCEFORM.tt_content.pi_flexform.9.s_category.catImageMode {
>label = Tag Image Link Mode:
>config {
> type = select
>items = ....
>}
>}
>
>Thanks.
>
>On Thu, Feb 9, 2012 at 1:20 PM, Kai Vogel <kai.vogel at speedprogs.de> wrote:
>
>> Damn, the attachment was removed :-(
>>
>> Therefore please see page 10 of the presentation for the TSconfig overview
>> ;-)
>>
>> Best regards
>> --
>> Kai Vogel
>>
>>
>>
>> >---- Original Message ----
>> >From: "Kai Vogel" <kai.vogel at speedprogs.de>
>> >To: "List for Core-/Extension development" <typo3-dev at lists.typo3.org>
>> >Sent: Do, Feb 9, 2012, 12:18 PM
>> >Subject: Re: [TYPO3-dev] TCEFORM_flexform & TCEFORM_flexformSheet
>> >
>> >Hi all,
>> >
>> >maybe the attached image helps to understand the configuration of
>> flexforms via TSconfig.
>> >
>> >For more information, see my presentation on slidehare:
>> >http://www.slideshare.net/kaivogel/flexforms-made-simple
>> >
>> >Best regards
>> >--
>> >Kai Vogel
>> >
>> >
>> >>---- Original Message ----
>> >>From: "Kai Vogel" <kai.vogel at speedprogs.de>
>> >>To: "List for Core-/Extension development" <typo3-dev at lists.typo3.org>
>> >>Sent: Do, Feb 9, 2012, 12:07 PM
>> >>Subject: Re: [TYPO3-dev] TCEFORM_flexform & TCEFORM_flexformSheet
>> >>
>> >>Hi Tomiţă,
>> >>
>> >>the sheet name ("s_category") is missing in your setup. You can pick it
>> out from the flexform file. This works:
>> >>
>> >>TCEFORM.tt_content.pi_flexform.9.s_category.catImageMode.label = Some
>> text
>> >>
>> >>And it is quite possible to configure a flexform field. If you for
>> example want to change the field type, then it goes like this:
>> >>
>> >>TCEFORM.tt_content.pi_flexform.9.s_category.catImageMode.config.type =
>> input
>> >>
>> >>Best regards
>> >>--
>> >>Kai Vogel
>> >>
>> >>
>> >>
>> >>>---- Original Message ----
>> >>>From: Tomiţă MILITARU <tomita.militaru at gmail.com>
>> >>>To: "List for Core-/Extension development" <typo3-dev at lists.typo3.org>
>> >>>Sent: Do, Feb 9, 2012, 11:31 AM
>> >>>Subject: [TYPO3-dev] TCEFORM_flexform & TCEFORM_flexformSheet
>> >>>
>> >>>Hello,
>> >>>
>> >>>I'm using TYPO3 4.6.4 with tt_news 3.1.0 and I want to change the BE
>> labels
>> >>>from the tt_news flexform via page tsconfig. I've managed to change the
>> >>>sheet title of the flexform, but I see instruction for changing the
>> fields
>> >>>are missing from the documentation:
>> >>>
>> http://typo3.org/documentation/document-library/references/doc_core_tsconfig/4.6.0/view/1/5/#id2620800
>> >>>
>> >>>For example, to change the flexform field catImageMode I've tried, but
>> with
>> >>>no effect:
>> >>>TCEFORM.tt_content.pi_flexform.9.catImageMode.label = Some text
>> >>>
>> >>>I guess there is no feature implemented yet to change flexform fields?
>> >>>
>> >>>Thank you!
>> >>>
>> >>>--
>> >>>Engr. Tomiţă MILITARU
>> >>>Certified TYPO3 Integrator
>> >>>Tel. +40741064681
>> >>>_______________________________________________
>> >>>TYPO3-dev mailing list
>> >>>TYPO3-dev at lists.typo3.org
>> >>>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>> >>
>> >>_______________________________________________
>> >>TYPO3-dev mailing list
>> >>TYPO3-dev at lists.typo3.org
>> >>
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev_______________________________________________
>> >TYPO3-dev mailing list
>> >TYPO3-dev at lists.typo3.org
>> >http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>
>
>
>
>-- 
>Engr. Tomiţă MILITARU
>Certified TYPO3 Integrator
>Tel. +40741064681
>_______________________________________________
>TYPO3-dev mailing list
>TYPO3-dev at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list