[TYPO3-ttnews] My own template for tt_news
Xatucans
Xatucans at gmail.com
Mon Jun 26 11:49:26 CEST 2006
Hi, I just find the solution in other post of this board (Re: [TYPO3-ttnews]
How to call css file in typo setup? 01 Jun 2006 07:52:00 +0200)
You must write this code in the TS setup of your main template:
page.includeCSS.file1 = fileadmin/mycssfile.css
... now you can delete the "default CSS-styles (tt_news)" from the include
statics and your css style will be the only one for your tt_news
If you would like to include more css you must do it like this:
page.includeCSS.file2 = fileadmin/second.css
page.includeCSS.file3 = fileadmin/third.css
"Aleksandar Milovac" <aleksandar.milovac at rns-nis.co.yu> escribió en el
mensaje
news:mailman.4240.1151308026.30412.typo3-project-tt-news at lists.netfielders.de...
> Hi,
> I also have a similar problem.
> I've copied tt_news default template and css in fileadmin. In
> tt_newss.html I hardcoded href="css/tt_news.css". I want to modify this
> css, but that doesn't work. In my main template setup I added this:
>
> plugin.tt_news {
>
> templateFile=fileadmin/templates/tt_news.html
> _CSS_DEFAULT_STYLE >
>
> }
>
> This way tt_news uses my default css for the whole site. This is not
> what I want. I've read about includCSS property, but that didn't work.
>
> Does anyone have an answer?
>
> Thanks,
> Aleksandar
>
> Xatucans wrote:
> > Hi, thank you for our answer, I try that way and it works fine, but I
think
> > there must be other way to do this from TS setup (with out calling the
css
> > from the template page). Anyboy knows something about?
> >
> >
> > "Thomas Ziirsen" <ziirsen at linkfactory.dk> escribi? en el mensaje
> >
news:mailman.1.1151050915.12010.typo3-project-tt-news at lists.netfielders.de...
> >> Xatucans wrote:
> >>> Thanks for your answer, I do it like you say and now I can get my new
> > own
> >>> template, but I've a problem with ccs. I create a new css file (in my
> > own
> >>> template's same folder), but it doesn't get it, the news continue
> > rendering
> >>> with ext folder css. I suppose I must call me new css file from the TS
> > setup
> >>> too, but I don't know how.
> >>>
> >>> "ben van 't ende [netcreators]" <ben at netcreators.com> escribi? en el
> > mensaje
> >
news:mailman.1.1151008232.31164.typo3-project-tt-news at lists.netfielders.de...
> >>>> Xatucans wrote:
> >>>>
> >>>>> Hi, I want to create my own template for tt_news and locate it
outside
> >>> the
> >>>
> >>>>> ext folder. I write this code in the TS setup field of the root
page's
> >>>>> template
> >>>>>
> >>>>> plugin.tt_news.templateFile =
> >>>>> fileadmin\template\tt_news\tt_news_template.html
> >>>>>
> >>>>> (fileadmin\template\tt_news\tt_news_template.html is the location
and
> >>> the
> >>>
> >>>>> name of the new template)
> >>>>> but it doesn't work.
> >>>>>
> >>>>> I have tried different configurations:
> >>>>> 1- if I include Css-based tmpl (tt_news) or Table-based tmpl
(tt_news)
> >>> in
> >>>
> >>>>> Include static (from extensions) field of my root template, tt_news
> >>> gets
> >>>
> >>>>> its default template (from ext/tt_news... folder) and shows the news
> >>> with
> >>>
> >>>>> this template
> >>>>>
> >>>>>
> >>>>> 2- but if I remove them (Css-based tmpl (tt_news) or Table-based
tmpl
> >>>>> (tt_news)) and write the code above in the TS setup field, the
tt_news
> >>>>> doesn't work.
> >>>>>
> >>>>> 3- If I leave the code and Css-based tmpl (tt_news) or Table-based
tmpl
> >>>>> (tt_news) the news appears, but they don't get my own template.
> >>>>>
> >>>>> Can anybody tell me how can I do it? thanks
> >>>> Hi
> >>>>
> >>>> Number 1 seems ok to me. Use the object browser from the template
module
> >>>> to check if you configured templateFile right. Maybe your TS setup is
> >>>> not inherited in some way.
> >>>>
> >>>> gRTz
> >>>>
> >>>> ben
> >>>> --
> >>>> netcreators :: creation and innovation
> >>>> www.netcreators.com - www.typo3.nl
> >>>>
> >>>
> >>>
> >> If you can add a stylesheet on your "page template" with the CSS
> >> class's/id's corresponding with the onces tt_news auto generates on
> >> rendering, and they will get overwriten.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > TYPO3-project-tt-news mailing list
> > TYPO3-project-tt-news at lists.netfielders.de
> >
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-news
>
> --
> Pozdrav,
> Sasa
More information about the TYPO3-project-tt-news
mailing list