Page 1 of 1

[SOLVED] News Module and CSS

Posted: Sat Apr 09, 2011 6:24 pm
by esperlu
Hi,

The detailed content of a news has a url like:

Code: Select all

http://my-site.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=2&cntnt01returnid=72
Where and how can I attach a specific style sheet for that page only without affecting all the others. Or how can I add a additional style sheet only for that one?

Re: News Module and CSS

Posted: Sat Apr 09, 2011 10:13 pm
by Dr.CSS
You can use the detailpage= parameter to send the news to a specific page for the viewing of detail content and when you make that page you can add {stylesheet name='name of it'} in the metadata box in the options tab to give page specif styling...

Re: News Module and CSS

Posted: Wed Apr 13, 2011 7:39 am
by esperlu
I didn't find the "detailpage= parameter" but by exploring the option tab of the news module I found the solution:

Content -> News -> Option tab -> Detail View Settings -> Default page to use for detail views

But maybe that was what you meant by "detailpage= parameter"

Thanks for putting me on track. CMSms rocks!

Re: News Module and CSS

Posted: Wed Apr 13, 2011 8:35 am
by RonnyK
detailpage parameter is described in the help of the module. Check the modules page and see on the top-right a link to its help.

From Extensions->Modules a link to all module-helps is available.

The parameter that you found in News is the generic parameter where detailtemplates will show. The help shows additional parameters as well....

A parameter is called like... {news detailpage="some-alias"}

Ronny

Re: News Module and CSS

Posted: Wed Apr 13, 2011 9:58 am
by esperlu
Ok. Got it now.

It has apparently the same effect as going through the Content->News->Option tab->Detail View Settings->Default page to use for detail views route

Thanks for not having RTFM'ed me and for being patient.

Re: News Module and CSS

Posted: Wed Apr 13, 2011 10:13 am
by M@rtijn
esperlu wrote:Thanks for not having RTFM'ed me and for being patient.
;D I like this

Can you edit the first post and add [solved] to the title?

Re: [SOLVED] News Module and CSS

Posted: Wed Apr 13, 2011 11:17 am
by RonnyK
and indeed it has the same effect. Only thing is that the one in News-options works for ALL entries to that single detailpage, where with the detailpage- parameter, you can make it go to specific pages depending on where you are...

So on one place you can call {news category='somecat' detailpage='somepage'} and somewhere else you could call {news category='othercat' detailpage='someotherpage'}

So if you want a single detailpage for all, then the options-one is fine, otherwise with the parameter it gives more flexibility to fulfil your needs.

Ronny

Re: [SOLVED] News Module and CSS

Posted: Wed Apr 13, 2011 1:15 pm
by esperlu
I see. Nice granularity. I start to get the feeling of CMSms's power and flexibility. I will certainly be back with other questions soon...