Project

General

Profile

Actions

Feature #17745

closed

Allow dynamic values in TCAdefaults

Added by Christian Trabold over 16 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-11-02
Due date:
% Done:

0%

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

Description

At time writing only static values can be set via TCAdefaults.

It would be nice (tm) if these values could be processed via userFunc to get dynamic values eg. a dynamic timestamp depending on the page section.

Example:

TCAdefaults.tx_tablename {
date.userFunc = EXT:ext_key/res/class.tx_userfunc_defaultvalue.php:tx_userfunc_defaultvalue->getDefaultValue
}

or

TCAdefaults.tx_tablename {
salutation = Initial value
salutation {
userFunc = EXT:ext_key/res/class.tx_userfunc_defaultvalue.php:tx_userfunc_defaultvalue->getDefaultValue
userFunc {
title = Dear Mrs.
name = tt_address:name
}
}
}

(issue imported from #M6635)


Files

Actions

Also available in: Atom PDF