[TYPO3-core] RFC: Feature Request: TCEforms/IRRE - Allow TSconfig to override TCA field configuration

Oliver Hader oh at inpublica.de
Sat Feb 3 18:03:40 CET 2007


Committed to Trunk.

Sebastian's suggestion to change $allowOverrideMatrix to be a class
variable was integrated.
See ChangeSet:
http://svn.t3.digitaldistrict.de/cgi-bin/trac.cgi/changeset/6681


olly


Oliver Hader wrote:
> This is a SVN patch request.
>
> Problem:
> Currently most options regarding behaviour and appearance of an
> extension depend on how the initial extension developer has defined this
> in tca.php. If the size of a selector box should not be "5" but "10",
> the only way is to change/hack the extension code.
>
> Solution:
> Integrate a possibility to set TSconfig in a general form like
> TCEFORM.<table>.<field>.config that overrides the extension settings at
> $TCA[<table>]['columns'][<field>]['config'].
>
> Page TSconfig example:
> TCEFORM.tx_irretutorial_mnasym_hotel {
>   offers.config {
>     foreign_selector = offerid
>     appearance {
>       useCombination = 1
>       useSortable = 1
>     }
>   }
> }
>
> This could be used to influence appearance and behaviour of an extension
> for e.g. specific pages. Of course not every TCA configuration key can
> be changed. Changing "type" from "select" to "input" with TSconfig would
> be a bad idea and is not allowed.
>
> Comments:
> Currently this issue would be used for Inline Relational Record Editing,
> but I integrated the changes into TCEforms, because other TCA types
> could also benefit from it.
>
> Documentation changes:
> In doc_core_tsconfig, section "TCEFORM" add a new property:
> [tablename].[field].config.[key]
> Overrides configuration settings in
> $TCA[<tablename>]['columns'][<field>]['config'][<key>]. Allowed keys are
> : maxitems, minitems, size, foreign_selector, foreign_unique, appearance.
>
> Branch:
> Trunk
>
>
> olly


More information about the TYPO3-team-core mailing list