[TYPO3] Default content types

JoH asenau info at cybercraft.de
Thu May 24 23:17:21 CEST 2007


> I'd like to change the default content type for pagecontent items
> using TS.
>
> I've tried:
> TCEFORM.tt_content.columns.CType.config.default = 'textpic';
>
> which doesn't work. Am I only able to change *some* TCA values from
> TS?

This TSconfig simply doesn't exist.
Check the TSconfig documentation for allowed settings:

http://typo3.org/documentation/document-library/references/doc_core_tsconfig/4.1.0/view/1/3/#id3541144
TCEFORM.[tablename].[field].config.[key]

> The configuration file change:
> $TCA['tt_content']['columns']['CType']['config']['default'] =
> 'textpic';
>
> should do what I want, but I want to avoid changing the config files.

So this is the time when you want to setup a little extension or put the
changes into extTables.php in your localconf directory ... ;-)

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com




More information about the TYPO3-english mailing list