|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
I want to create a CSS file and dynamically include it with a <link> tag in my extension. The CSS file is created from a template and therefore has to be created on the fly. I would therefore probably just write it to typo3temp/. However, I want to make sure that I use the right kind of TS and API functions. What should I use to write to typo3temp/? How should I include the CSS properly? I have to be able to set the id of the link tag because I need to be able to disable the stylesheet in JS later. Any hints would be very much appreciated. ![]() Cheers, Christian _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi Christian.
How about using this one? http://typo3.org/extensions/reposito...amiccss/0.2.1/ -- Peter Klein/Umloud Untd "Christian Lerrahn (Cerebrum)" <christian.lerrahn (AT) cerebrum (DOT) com.au> skrev i en meddelelse news:mailman.1.1191482248.23223.typo3-english (AT) lists (DOT) netfielders.de... > Hi, > I want to create a CSS file and dynamically include it with a <link> tag > in my extension. The CSS file is created from a template and therefore > has to be created on the fly. I would therefore probably just write it > to typo3temp/. However, I want to make sure that I use the right kind > of TS and API functions. What should I use to write to typo3temp/? How > should I include the CSS properly? I have to be able to set the id of > the link tag because I need to be able to disable the stylesheet in JS > later. > > Any hints would be very much appreciated. ![]() > > Cheers, > Christian _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hi,
On 10/4/07, Peter Klein <peter (AT) umloud (DOT) dk> wrote: > Hi Christian. > > How about using this one? > http://typo3.org/extensions/reposito...amiccss/0.2.1/ > > -- > Peter Klein/Umloud Untd > > "Christian Lerrahn (Cerebrum)" <christian.lerrahn (AT) cerebrum (DOT) com.au> skrev i > en meddelelse > news:mailman.1.1191482248.23223.typo3-english (AT) lists (DOT) netfielders.de... > > Hi, > > I want to create a CSS file and dynamically include it with a <link> tag > > in my extension. The CSS file is created from a template and therefore > > has to be created on the fly. I would therefore probably just write it > > to typo3temp/. However, I want to make sure that I use the right kind > > of TS and API functions. What should I use to write to typo3temp/? How > > should I include the CSS properly? I have to be able to set the id of > > the link tag because I need to be able to disable the stylesheet in JS > > later. > > > > Any hints would be very much appreciated. ![]() There is also a reasonably complete and detailed tutorial on how to use TS and ordinary page records to create and serve dynamic CSS sheets in the manual to my extension bh_firtools (as well as a page-tree export in the extension itself) [1]. -- Christopher Torgalson http://www.typo3apprentice.com/ [1] http://typo3.org/extensions/reposito...irtools/2.0.0/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] lz_table could not be created Error | David Banning | typo3-english@lists.netfielders.de | 3 | 26.09.2007 06:04 |
| [TYPO3-ttnews] Related files - change maximum allowed files pernews item. | Jurvtk | typo3-project-tt-news@lists.netfielders.de | 1 | 18.09.2007 20:35 |
| [TYPO3] ttnews: Alter pid_list value dynamically | Matyi Gábor | typo3-english@lists.netfielders.de | 0 | 14.08.2007 13:33 |
| [TYPO3] how a js file is included inside a typo3 extention? | tennyson varghese | typo3-english@lists.netfielders.de | 0 | 20.01.2007 07:20 |
| [TYPO3] Content elements included allways into normal column -default language | Jan Zýka | typo3-english@lists.netfielders.de | 1 | 06.12.2006 19:45 |