[TYPO3] developing extension for font-size changes

Katja Lampela katja.lampela at lieska.net
Thu Mar 29 22:48:53 CEST 2007


Check also fontresize extension if it has anything you have in mind :)
Katja

Felix Natter wrote:
> hi,
> 
> I need to have buttons on my site for increasing/decreasing font-size.
> There is an extension "dynamicfontsize" for this purpose, but it
> is javascript-based and does not support inc/dec buttons
> (only supports buttons small/normal/large).
> 
> I'd like to develop a solution that is server-based (current font-size
> saved in PHP session variable) and that includes a stylesheet file for
> the specified font-size.
> 
> I thought I'd write a frontend extension that includes the correct
> stylesheet based on a session variable and the output of which is
> copied into the page header:
> page.headerData.11 < tx_MYEXT_pi1
> 
> Now I'd set "larger fontsize button"'s href to
> index.php?id=PID&fontsize=larger and the extension above would
> see this in $_GET and set/adapt the session variable.
> 
> This is my first extension. Is this a good approach or can
> this be done more easily?
> 
> thanks,
> 


More information about the TYPO3-english mailing list