[TYPO3] (no subject)

Francois Suter fsuter at cobweb.ch
Sun Dec 16 11:33:32 CET 2007


Hi,

> I want restrict the locations that a user can choose to place an  
> image (in
> text left and in text right only, for example) when creating a  
> 'text and
> image' content element.
>
> I've looked through the $TCA and have tried out some options, but  
> to no
> avail. What is the right command to put in localconf.php?

Something like:

unset($TCA['tt_content']['columns']['imageorient']['config']['items'] 
[1]);

To find out which index to unset (in this example "1"), use the  
Configuration item of the Tools module and display the TCA for  
tt_content.

Note that this piece of code should go into the ext_tables.php file  
and that you must load the full TCA for tt_content first:

t3lib_div::loadTCA('tt_content');

HTH

François Suter

-- 
Cobweb Development Sàrl
www.cobweb.ch

Rue Eugène-Marziano 15, CH-1227 Les Acacias (Geneva - Switzerland)
T: +41 22 880 00 93, F: +41 22 880 00 94, E: support at cobweb.ch
web solutions for professionnal requirements






More information about the TYPO3-english mailing list