Project

General

Profile

Actions

Feature #33044

closed

Add possitbility to create hidden palettes in TCEForms

Added by Ingmar Schlecht over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2012-01-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Ingmar Schlecht over 12 years ago

Added documentation changes to:
http://forge.typo3.org/issues/33063

Actions #5

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

Actions #6

Updated by Ingmar Schlecht about 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF