Feature #17745
closedAllow dynamic values in TCAdefaults
0%
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
Updated by Christian Trabold almost 17 years ago
I updated the patch file.
The patch does only implement the userFunc-Feature for Page- and User-TSconfig and does NOT clean up the code.
The cleanup can be done by a second patch after this feature had been tested correctly.
Updated by Dirk Weise almost 17 years ago
That's a very useful feature! It would be great if this could be merged into 4.2.0.
so +1
thanks!
Updated by Xavier Perseguers over 13 years ago
- Target version deleted (
4.6.0-beta1)
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.