[TYPO3-ttnews] How to call css file in typo setup?

Frank frank.sonck at freebel.net
Thu Jun 1 01:21:26 CEST 2006


Hi,

Here's a very specific question regarding the use of css files. For a 
homepage I'd like to use several css files: a general file with basic 
styles, a news.css for the tt_news plugin and so on. I want to call and 
control these files via the Typo setup. Like this all style stuff is managed 
in one place, which is convenient.
But how do I override default styles and how do I call my own style files? 
Below is my setup. You'll see that I've tried different things. But I didn't 
succeed in calling in my news.css. Can someone help please?

Thank you very much.

page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

plugin.tt_news.templateFile =
fileadmin/templates/res/tt_news_v2_template.html
#plugin.tx_pbsurvey_pi1._CSS_DEFAULT_STYLE >
#plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE >
#plugin.tx_indexedsearch._CSS_DEFAULT_STYLE >
#plugin.tx_srlanguagemenu_pi1._CSS_DEFAULT_STYLE >
plugin.tt_news._CSS_DEFAULT_STYLE = fileadmin/templates/news.css
plugin.tt_news.stylesheet = fileadmin/templates/news.css
page.10.stylesheet = fileadmin/templates/news.css

plugin.tt_news {

   _CSS_DEFAULT_STYLE (

.news-list-item {
 /* IE hack */
 height: 30%;
 line-height: 1.3;
 /* IE hack end */
 padding:0px;
 margin:5px;
 background-color:#FFFFFF;
 border: 4px solid;
 }

   )
} 





More information about the TYPO3-project-tt-news mailing list