[TYPO3-RTE] clickenlarge enabling

Stanislas Rolland typo3 at sjbr.ca
Thu Apr 9 16:28:49 CEST 2009


Hi Myroslav,
> 
> Once it was needed to make clickenlarge for images. Due to security settings 
> on hosting i can't change htmlarea config in typo3 backend, so i hardcoded 
> that in ext_localconf.php near line 155:
> 
> $_EXTCONF['enableImages'] = 1;
> $_EXTCONF['enableClickEnlarge'] = 1;
> 
Strange "security" settings that does not allow you to use the Extension 
Manager, but does allow you to modify the code!

> After that, of course, i can insert images and set "clickenlarge" ckeckbox. 
> But the problem is, that inserted by htmlarea parameter clickenlarge="1" 
> won't parse into js onclick event by postUserFunc configured in 
> lib.parseFunc_RTE!
> 
> It was very strange. Template analizer told me, that lib.parseFunc_RTE was 
> correctly extended with tags.img postprocessing, so all should work. 
> var_dump() and even die() in tx_rtehtmlarea_pi3->render_clickenlarge hasn't 
> do anything. Very very strange. It means, that good configured 
> lib.parseFunc_RTE just wasn't executed in that case!..
> 
> For experiment i've extend ususal lib.parseFunc in the same way and all 
> start to work. So just curious, what was it? It is bug, or with my hardcode 
> i hav'nt done all what is needed?
> 
> And yes, i've included static template 'Clickenlarge Rendering'. 
> 
Check the value of 
$TYPO3_CONF_VARS['EXTCONF']['rtehtmlarea']['enableClickEnlarge']
in the TYPO3 configuration array.

Stanislas


More information about the TYPO3-project-rte mailing list