have news pages use different template?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
toolman
Forum Members
Forum Members
Posts: 51
Joined: Wed Sep 12, 2007 5:10 pm

have news pages use different template?

Post by toolman »

hi,

at the moment my news pages are using the same template as my index page. Is there a way to set the news pages to use a different template?

Thanks
User avatar
Patric
Forum Members
Forum Members
Posts: 10
Joined: Mon Feb 22, 2010 12:25 pm

Re: have news pages use different template?

Post by Patric »

Yupp, seems to be ;)

Try go to the page you wanna change style for. Say you've created a page called "wannahavebeer" ;) Now since this as default uses the theme chosen for the site (I think) you need to go to CONTEN/PAGES then EDIT mentioned page. Whilst in the edit mode, you have three tabs above the forms, right... Click SETTINGS. The top dropdown list should be the CSS style (it is at my place). Now, if you have multiple stylesheets to choose from this is a easy task... Just change that style from the dropdown list.

If not having more style to choose from, you need to go learn how to either prot a theme, or make your own.

Regards - Patric.
"Only dead fish swim WITH the stream"
toolman
Forum Members
Forum Members
Posts: 51
Joined: Wed Sep 12, 2007 5:10 pm

Re: have news pages use different template?

Post by toolman »

Thanks for the reply.

I currently only have my news link on my homepage.

the homepage is the only page using a different template than the default. I think what is happening is that because the news module is using index.php in its url, it is using the template assigned to the homepage/index.php
User avatar
stijlXpres
Forum Members
Forum Members
Posts: 137
Joined: Tue May 05, 2009 12:10 pm

Re: have news pages use different template?

Post by stijlXpres »

Hi Toolman,

First you have to create a template which you want to use for your newspages.
Then you have to create a new page that you will use to show the newsitem in (in detail mode)
Now do the trick Patric already explained and tell your new page is has to use the template you created for it.

If that's done you have to edit the tag you use to call the news details. This has to look something like this:

Code: Select all

  {news detailpage="pagealias" articleid="-1"}
You have to change 'pagealias' for the alias of the page you just created to show the news in.

That's it!

Good luck!
Post Reply

Return to “Layout and Design (CSS & HTML)”