Project

General

Profile

Actions

Feature #39007

closed

Add "process_cmdmap" processor hooking before tceForm renders

Added by Gabriel Kaufmann / Typoworx NewMedia over 12 years ago. Updated over 9 years ago.

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

0%

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

Description

I tried to figure out if there is any hook that provides the possibility to handle data delivered to tceForm (Record rendering).

I would like to modify the table-row while the record is loaded for display (no save taking place yet).
Is there something like that yet?

Actions #1

Updated by Philipp Gampe over 12 years ago

You should ask such questions in the mailing list / newsgroup. (typo3.english or typo3.dev)

Actions #2

Updated by Gabriel Kaufmann / Typoworx NewMedia over 12 years ago

Philipp Gampe wrote:

You should ask such questions in the mailing list / newsgroup. (typo3.english or typo3.dev)

Thanks - I've already done that. Also I tried to find an existing hook that may be able to do this.

I've figured out some Hooks in t3lib_tceform that asked for EXT:dynaflex that make the $row available, but I was unable to alter the array for the fields rendering afterwards.

I have a workaround solution made by myself using XCLASS on t3lib_tceforms:

------
class ux_t3lib_tceforms extends t3lib_tceforms {

function getSingleField($table, $field, $row, $altName = '', $palette = 0, $extra = '', $pal = 0) {
#die('LOAD::' . FILE . CLASS .'::' . FUNCTION);
// Test to alter the value of field "name"
$row['name'] = 'XXX';
return parent::getSingleField($table, $field, $row, $altName, $palette, $extra, $pal);
}

}

if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms.php'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms.php']);
}
?>
------

This works! Of course XCLASS'ing isn't always the best solution...

If there is a better solution to archive this, please let me know here.

Actions #3

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

Can you supply a usecase of what you are trying to do on a non-technical level?
We might come up with a solution, then

Actions #4

Updated by Alexander Opitz over 9 years ago

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions #5

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF