[Typo3] no connection to tt_news?

Jane Larsen noesgard at gmail.com
Sat May 14 16:06:28 CEST 2005


The linking of css directly in the template was exactly the issue for
no styling of tt_news!

Thank you for helping out :o)

//Jane

On 5/13/05, Jane Larsen <noesgard at gmail.com> wrote:
> I didn't jnow about the local link to css wouldn't work, but that will
> explain quite a bit of my problems :o)
> 
> plugin.tt_news {
>   _CSS_DEFAULT_STYLE ( ...
> 
> was set and added to the page object, using sub templates but I'll try
> linking the css file as you indicated - I think that is what I was
> missing :o)
> 
> Thank you for clearing some info herev:o)
> 
> //Jane
> 
> On 5/13/05, Rupert Germann <rupi at gmx.li> wrote:
> > Hi Jane
> >
> > Jane Larsen wrote:
> > [...]
> > > But I have a template (in html) that's a cpoy of the original new
> > > tt_news template. There I made a link for my own css file.
> >
> > css files that are linked in the tt_news html template will be ignored
> > because tt_news takes always only a part of the template and _never_ the
> > header section. The css template reference in the header is only for local
> > testing.
> >
> > correct would be to link the css file in the page object in your ts-template
> > (setup):
> >
> > page.includeCSS {
> >  file1 = fileadmin/template/other_styles.css
> >  file2 = fileadmin/template/tt_news_v2_main_styles.css
> > }
> >
> > > If testet
> > > offline those two work fine (the HTML is styled according to the css
> > > file), but when online no styling is applied...
> >
> > see above
> >
> > > If I include default
> > > styles I get the green boxes, and if I try this in my setup TS:
> > >
> > > plugin.tt_news {
> > >   _CSS_DEFAULT_STYLE (
> > >   /* example styles for the pagebrowser*/
> > >    H2 {font-size: 10px;}
> > >    .tx-ttnews-browsebox TD { font-size: 10px; }
> > >    .tx-ttnews-browsebox-strong,
> > >    .tx-ttnews-browsebox-SCell { font-weight: bold; }
> > >    .tx-ttnews-browsebox-SCell { background-color: #EEE; }
> > >   )
> > > }
> > > no style is applied either
> >
> > are the styles above added to the page header ?
> > if not - maybe you added the lines above at the wrong place.
> >
> > plugin.tt_news {
> >    _CSS_DEFAULT_STYLE ( ...
> >
> > should be in the setup field of the template record.
> >
> > > I tried this too:
> > >
> > > plugin.tt_news {
> > >  _LOCAL_LANG.dk {
> > >   latestHeader = Seneste Nyt!
> > >   more = [Læs mere...]
> > >  }
> > > }
> > >
> > > with no luck...
> >
> > if you set danish as default language then something like
> > ... _LOCAL_LANG.default {...
> > could work.
> >
> > hth & greets
> > rupi
> >
> >
> > _______________________________________________
> > Typo3-english mailing list
> > Typo3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



More information about the TYPO3-english mailing list