[Typo3-dev] Idea: Browser drivers
Jan-Hendrik Heuing [NF]
jh at netfielders.de
Thu Mar 24 13:41:02 CET 2005
> Instead of making any of this, we use TypoScript (for example) like this:
>
> example = FULL_HEIGHT_BOX
> example {
> height = 100%
> //....
> }
>
> The object "FULL HEIGHT BOX" finds out which browser is viewing the page
> and makes some html and css which will work for that browser.
Generaly interesting. Straight away I am not quite sure if I'd be flexible
enough... but of course it could always be combined with standard things.
One thing to mention:
I'd not say "and makes some html and css which will work for that browser.",
I' go the other way: I'd generate some html which willworkon all browsers to
not have conditions,internal browser-related stuff. The reason:If you cache
pages, the cache might not know about it. If it'd generate html which just
works on all browsers,sounds better to me.
Related to the drivers:
Having FULL_HEIGHT_BOX, those browser drivers could come up with details sot
hat the object is changed that it works on those browsers as well. But this
sort of ends up in some general approach again, not browser related.
JH
More information about the TYPO3-dev
mailing list