Feature #33044
closedAdd possitbility to create hidden palettes in TCEForms
100%
Description
Hi guys,
sometimes it's useful to have fields rendered in TCEForms, but never display them anywhere.
One such occasion, where that is useful, is for the "foreign_field" feature of IRRE. As you might know, IRRE makes it possible to render something called a "foreign_selector" which lets the user choose from records of another (third) table (not the IRRE child table) to create relations to by using an intermediate table (the IRRE child table). However, there is one problem with it: IRRE requires the field of the intermediate table, which carries the link to the third table, to be always displayed in the form, even though it only carries technical information (the relation) which the user doesn't need to see at all. Of course, one could also change IRRE to not require the field to be present any more, but that would be technically much more challenging and more error prone.
Also, there might be other cases where it's useful to render a field but not display it anywhere, e.g. when you want to set a value of a (hidden) field by some JavaScript of a user-defined (other) field. Therefore, the feature to hide a field is rather universally useful.
Now: Why go the way of "hidden palettes" instead of "hidden fields" directly?
There are two points speaking in favour of implementing the hide functionality per palette instead of per field:- It's more flexible: Fields can be hidden in one scenario and displayed in another scenario (depending on which palette they're rendered in)
- it's easier to implement: For palettes, you can simply hide the link to the palette. For fields, it's hard to do, because fields always go into a strict template for which a new table row is created by TCEForms, so they remain visible.
Updated by Gerrit Code Review over 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7698
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7698
Updated by Gerrit Code Review over 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7698
Updated by Ingmar Schlecht over 12 years ago
Added documentation changes to:
http://forge.typo3.org/issues/33063
Updated by Gerrit Code Review over 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7698
Updated by Ingmar Schlecht over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5e55c444f08001c016e4e0d6e9a85b47eef7f216.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed