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

Oliver Hader oh at inpublica.de
Thu Feb 1 14:14:11 CET 2007


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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: irre_TSconfig.patch
Type: text/x-diff
Size: 4228 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070201/bf2620d6/attachment.bin 


More information about the TYPO3-team-core mailing list