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 #1

Updated by Christian Trabold over 16 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.

Actions #2

Updated by Dirk Weise over 16 years ago

That's a very useful feature! It would be great if this could be merged into 4.2.0.
so +1

thanks!

Actions #3

Updated by Benni Mack about 14 years ago

Anyone willing to update the patch?

Actions #4

Updated by Xavier Perseguers over 12 years ago

  • Target version deleted (4.6.0-beta1)
Actions #5

Updated by Alexander Opitz almost 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?

Actions #6

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF