[TYPO3-dev] "local" defaults for db values

Dmitry Dulepov [typo3] dmitry at typo3.org
Fri Jul 25 15:25:09 CEST 2008


Hi!

Martin Kutschker wrote:
> I can set default values for visible fields per user (group) and per
> page branch (new in 4.2). The global TCA defaults are also set only for
> visible fields.
> 
> But I cannot set default values different from the DB field values, right?

If there are values already than defaults are not used. Or do I misunderstand you?

> I know that I can do some tricks via URL parameters of alt_doc.php, but
> that would mean that I have to write my own UI.
> 
> Do I have to use some TCEmain hook or am I missing the obvious?
> 
> What I need is a way that I get some fixed values within a page tree.
> And I want to hide the field from the users so they cannot change it.

Possibly you can do it in extTables.php. Alter 'types' for the table and set your own default values.

-- 
Dmitry Dulepov
TYPO3 Core team
Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml




More information about the TYPO3-dev mailing list