[Typo3] accessible font size?
S. Teuber
traveler_in_time at gmx.net
Wed Oct 12 08:19:07 CEST 2005
Hi Chris,
> It seems to me that the dynamic nature of Typo3 would enable the
> user's font size selection to be passed from Typo3 page to Typo3 page
> by way of conditional templating, standard wraps on page links, and
> the &type= parameter. None of this would demand client size cookies or
> javastuff -- and the font selection could be persistent through out a
> user's visit (though not persistent between visits).
This could work...
Another approach that just popped into my mind (without thinking it
through, though): Let the "change font size"-Icons pass some parameter as
GET-value. Check for that parameter in TypoScript, if it is set, invoke a
little PHP-script (user-function) that stores the actual fontsize-value
in the users session data. Every user browsing a TYPO3-made site has a
session, regardless if he's anonymous or logged in.
Now implement another user-function that modifies a small stylesheet,
setting the actual (base) font-size based on what's stored in the user's
session. Something like
* {
font-size: [whatever];
}
should do if the rest of the elements is sized using "em". Of course,
this stylesheet should be the first on every page.
But frankly, I think your approach of just using TypoScript and no user-
functions seems to be more sexy. I'll try that soon, for I need to built
exactly that functionality into a new site.
Sven
More information about the TYPO3-english
mailing list