[TYPO3-ttnews] css problems

Frank frank.sonck at freebel.net
Tue May 30 00:32:14 CEST 2006


I'm sorry but I can't get this thing to work. This is what I've been trying 
in my setup and I still can't override the default. The file news.css is my 
own.

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;
 }

   )
}

"Matthias Peltzer" <mail at mpeltzer.de> schreef in bericht 
news:mailman.1.1148901781.2051.typo3-project-tt-news at lists.netfielders.de...
> Frank schrieb:
>> Hello everybody,
>>
>> Thanx for the answers. So if I understand correctly I can OR not include 
>> the default styles in the static section OR override them by setting them 
>> to "= " in the TS setup. Seems the most logical thing to do then is not 
>> to include them in the static section.
>>
>> I have one remaining question: can I override part of the default styles? 
>> I don't want to redo the whole css myself, I just want to change certain 
>> elements of it.
>>
>> Thanx!
>> Frank
>>
>> "Andre Flitsch" <pixelhed at pixel-works.co.uk> schreef in bericht 
>> news:mailman.1.1148890201.24057.typo3-project-tt-news at lists.netfielders.de...
>>> Frank wrote:
>>>> Thanx Andre and Henry, for the replies. Seems ok to just override the 
>>>> default CSS through typoscript. But still I'm wondering where the 
>>>> default CSS is? Why should it be so difficult to find this?
>>> Hi Frank
>>>
>>> You can check in the folder EXT:tt_news/static that is where the static 
>>> templates are stored in recent versions of tt_news.
>>>
>>> Look in the typoscript object browser, you will see under the key 
>>> plugin.tt_news._CSS_DEFAULT_STYLE a string representing the default css 
>>> styles (if you included the styles static template).
>>>
>>> If you *don't* want to have the styles in your page, then simply do not 
>>> click (in the "Include static (from extensions):" section) :
>>> "default CSS-styles (tt_news)"
>>>
>>> All the best
>>>
>>> Andre
>>
>>
> yes, you can... of course... just put your style defintion to your 
> stylesheet an include it after the one from the cached 
> typo3-extension-styles...
>
> greets matthias 





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