Project

General

Profile

Actions

Feature #25223

closed

Epic #62041: twbs Bootstrap backend, refactor EXT:t3skin and HTML5 output

Epic #62836: FormEngine PHP/HTML Improvements & Bootstrap

Enable TCA property displayCond for IRRE child records

Added by Oliver Hader over 13 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2011-03-02
Due date:
% Done:

100%

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

Description

Imagine that particular fields of an IRRE child record shall only be shown depending on a value in the parent record. Currently there is no easy way to access evaluate the parent record and define a behaviour.

For Flexforms a similiar solution with displayCond is available, e.g.:

FIELD:parentRec.header:REQ:true

However, it's problematic if the parent record is brand new and was not saved yet. In that case the field values of the parent should be transfered to the server side with the accordant AJAX request.

(issue imported from #M17824)


Files

typo3-6.1.1-displayCond.patch (4.92 KB) typo3-6.1.1-displayCond.patch David Frerich, 2013-07-02 15:21
Actions #1

Updated by Andreas Kießling over 13 years ago

Are there any news on that issue? I would need that functionality right now :) But it will probably not make it into 4.5 anymore?

Actions #2

Updated by Xavier Perseguers over 13 years ago

  • Target version changed from 4.6.0 to 4.6.0-beta1
Actions #3

Updated by Xavier Perseguers over 13 years ago

  • Target version deleted (4.6.0-beta1)
Actions #4

Updated by Thomas Deinhamer about 13 years ago

Is this going to be in 4.7?

Actions #5

Updated by Dominic Garms over 12 years ago

Hello, will it make its way to 4.7? I would need it right now too... :)

Actions #6

Updated by Georg Ringer over 12 years ago

doesn't look like there is a patch for it yet .. wanna do it or at least sponsor it?

Actions #7

Updated by Thomas Deinhamer about 12 years ago

This would be really useful! Any progress on this? Thanks for feedback!

Actions #8

Updated by David Frerich over 11 years ago

I've written a small patch for TYPO3 6.1.1 to implement this feature.

- Currently only "group"-Fields work
- It's only working if the records have been saved into the database (see the initinal comment)
- When more than one value exists (comma seperated uids in database), the first is taken

to use:
----------
e.g:

FIELD:fieldname.fieldname.fieldname:=:value

or:
FIELD:fieldname.header:=:value

Fieldname could be anything, any field name you want, that's a TCA Column of type="group"

to discuss:
----------
- Field with multiple values / MM relations -> ignore? take the first value? compare all?
I think it would suffice to pick the first value / record for comma-seperated fields and ignore MM-Relations

to do's:
----------
- Has to work for "select" and "inline" if no MM-Table is definied
- Brand new records should provide data for the ConditionMatcher

Actions #9

Updated by Lorenz Ulrich about 10 years ago

This would be a useful one for 7.0

Actions #10

Updated by Felix Kopp almost 10 years ago

  • Parent task set to #62836
Actions #11

Updated by Arek van Schaijk over 9 years ago

I like to have this feature as well

Actions #12

Updated by Christian Kuhn about 9 years ago

  • Status changed from Accepted to Rejected

this will not make it to 7. one of the main issue is indeed that - if parent is not persisted yet - the record data is not available at all during inline ajax request. actually, at the moment, parent is never available since parent is not fetched in inline new/open ajax context at all. there are more issues with parent overriding child data or tca depending on parents state, and none of that is solved.

solving this in a sane way will require way more thoughts if this is ever possible or wanted. an additional issue i see here is that a feature like this would render the very complex inline setup even more complex. i'm seriously not sure if we really should allow such stuff at all.

this issue should be solved differently - there are for instance the foreign_types "overrides" available to show different fields depending on which parent field the child is assigned to: one field per relation then to configure different child behavior. fal uses this for instance.

be prepared that this issue will probably not be solved in the near future. and if so, it will probably come along with a bigger tca syntax change.

i'll close this issue as rejected for now.

Actions #13

Updated by Christian Kuhn about 9 years ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF