[SOLVED] News Module and CSS

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
esperlu
Forum Members
Forum Members
Posts: 15
Joined: Tue Mar 29, 2011 6:35 pm

[SOLVED] News Module and CSS

Post 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?
Last edited by esperlu on Wed Apr 13, 2011 10:29 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Module and CSS

Post 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...
esperlu
Forum Members
Forum Members
Posts: 15
Joined: Tue Mar 29, 2011 6:35 pm

Re: News Module and CSS

Post 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!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News Module and CSS

Post 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
esperlu
Forum Members
Forum Members
Posts: 15
Joined: Tue Mar 29, 2011 6:35 pm

Re: News Module and CSS

Post 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.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: News Module and CSS

Post 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?
Make your community a better place!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [SOLVED] News Module and CSS

Post 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
esperlu
Forum Members
Forum Members
Posts: 15
Joined: Tue Mar 29, 2011 6:35 pm

Re: [SOLVED] News Module and CSS

Post 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...
Post Reply

Return to “CMSMS Core”