[Typo3] css with tt_news
Guillaume
g.jullien at free.fr
Fri Aug 19 22:30:29 CEST 2005
Matthias Stuebner a écrit :
> Am Fri, 19 Aug 2005 11:05:34 +0200 schrieb Guillaume:
>
>
>>I don't know how to tell template file to use my css file
>>(adding <link href="css/tt_news_v2_styles.css" rel="stylesheet"
>>type="text/css" /> in template file has no effect)
>
>
> I would say you are thinking to complicated.
>
> Using any extension I alway copy the DEFAULT_STYLES into a separate CSS
> file in fileadmin. Then just clear the DEFAULT_SYTLES and include the new
> CSS file in your main template. The best way is to use includeCSS (see
> TSRef).
>
> As the tt_news styles are in a separate css-file now, you can modify them
> as ever you want.
Thanks a lot,
I did this :
page.includeCSS {
file1 = fileadmin/templates/css/main.css
file2 = fileadmin/templates/css/tt_news.css
}
in my template, and it works fine.
But I still have a huge and unusefull code in my page :
.....
<style type="text/css"> /*<![CDATA[*/
<!-- /* default styles for extension "tx_newloginbox_pi3" */
...
/* default styles for extension "tt_news" */
...
How do clear the DEFAULT_SYTLES ?
Guillaume
More information about the TYPO3-english
mailing list