[TYPO3] Changing default selection of image position in textpic

Oliver Rowlands oliver at liquidlight.co.uk
Sun May 25 13:08:16 CEST 2008


Hi Frederik,

You should be able to override this value in the TCA:

$TCA['tt_content']['columns']['imageorient']['config']['default'] = 8;

Though I was under the impression that 'Below, center' was already the 
default value.

If you are trying to alter the default 'Text with image' which appears 
in the new content wizard you will have to use the hook provided by 
'EXT:cms/layout/db_new_content_el.php':

$TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']

Best regards,

Oliver

Frederik Pfisterer wrote:
> Hi Folks,
> 
> I am trying to change the default selection of the image orientation in the
> textpic (Text /w Image) Content element. In my case it should always be
> "Below, center". Is it possible to do this?
> 
> I try to insert the following TScript in the TSConfig of my Rootpage:
> 
> TCEFORM.tt_content.types.textpic.showitem = CType;;4;button;1-1-1,
> header;;3;;2-2-2,
> bodytext;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3,
> rte_enabled, --div--, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
> --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
> --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
> imagecaption;;5, altText;;;;1-1-1, titleText, longdescURL,
> tx_convert2utf8;;;;1-1-1
> 
> I guessed that somewhere around ";;;;4-4-4, imageorient;;" I should be able
> to set this default value. But however there is no effect on the form at
> all.
> 
> Thanks for every recommendation.
> 
> Cheers,
> Fred
> 


-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


More information about the TYPO3-english mailing list