Project

General

Profile

Feature #25049

Updated by Mathias Schreiber over 9 years ago

If you use the "wizard"->add feature in the TCA you are able to create new child records of a table Y; their UID is added to a field of table X. 
 But alas, your choices of the PAGES the new child records are saved to are limited to some #substitution_markers#. The PID is set in the array key params.pid: 

 Ex. 
				 'wizards' => Array( 
					 'add' => Array( 
						 'params' => Array( 
							 'pid' => 123, 
						 ), 
 Unfortunately a substitution with #PAGE_TSCONFIG_ID# will not be executed. 
 So there is no possibility to set the PID (the page the child record will be created in) dynamically per page. 

 the allowOverrideMatrix contains TCA keys which may be overwritten by Page TS. If we would add the TCA key "wizard" to this matrix we could set the pid value by Page TS. 



 



 I have described my solution for this problem using hooks in 

 http://www.typo3forum.net/forum/extension-modifizieren-neu-erstellen/34683-ids-f-r-tca-php-per-ts-festlegen-2.html#post166465 

 

 (issue imported from #M17604)

Back