[TYPO3] Parsing CSS files - is it possible?

JoH info at cybercraft.de
Wed May 24 02:25:32 CEST 2006


>>>> Is it possible to parse a CSS file and replace some parts of it
>>>> like with a template file?
>>>> I mean, I'm trying to attach a CSS file for an extension, but
>>>> inside the file there is a background-image declaration and the
>>>> image path should be changed depends on where the extension is
>>>> installed (relatively to the site path).
>>>> Is it possible?
>>>>
>>> As a preview of the upcoming TYPO3 cookbook you might want to try
>>> this ;-)
>>>
>>
>> Hey JoH,
>>
>> Fantastic solution, but isn't the book supposed to be called TYPOdrei
>> kuchbuch ;-) Will have to brush up my german. Didn't read any since
>> "Also sprach Zarathustra"

> as a contrary comment on this: I don´t like that solution. It may work
> but its quite complex and a good example of that kind of code that
> prevents many gifted programmers (i sadly know) and designers from
> learning/using typo3 because its not intuitive and no way direct. But
> thanx for showing the power of typoscript ;)

Sorry? - What is so complex about 15 lines of TypoScript?
IMHO it's absolutely easy to understand and to implement this snippet, since
it works _exactly_ like the rest of the templating stuff.
If this is what _prevents_ people from using TYPO3, I wonder what we should
do to get them back.
What would be their way of solving problems like this one?

BTW: Do you know a better solution, that is as easy to code and implement?

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list