Project

General

Profile

Actions

Feature #19054

closed

hook before_render a single field in tceforms

Added by Alex Widschwendter over 16 years ago. Updated over 14 years ago.

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

0%

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

Description

adds a hook in function "getSingleField_SW" before rendering of single fields in tceforms.

the hook can be used to add addtional config options in the tca array, to in influence the rendering of the field.

i used it to render some fields "readOnly" based on logged in be_user. ex:

function getSingleField_beforeRender($table,$field,$row,&$PA) {

if (is_array($PA['fieldConf']['config']['readOnlyGroups'])) {
if (count(array_intersect($PA['fieldConf']['config']['readOnlyGroups'], $GLOBALS['BE_USER']->userGroupsUID))>0) {
$PA['fieldConf']['config']['readOnly'] = true;
}
}
}

pending in core list
(issue imported from #M8890)


Files

bug_0008890.diff (891 Bytes) bug_0008890.diff Administrator Admin, 2008-07-03 11:11
Actions #1

Updated by Oliver Hader about 16 years ago

Committed to SVN Trunk (rev. 3933) by Dmitry

Actions

Also available in: Atom PDF