Page 1 of 1

have news pages use different template?

Posted: Fri Feb 26, 2010 7:17 pm
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

Re: have news pages use different template?

Posted: Fri Feb 26, 2010 7:25 pm
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.

Re: have news pages use different template?

Posted: Fri Feb 26, 2010 7:34 pm
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

Re: have news pages use different template?

Posted: Sat Feb 27, 2010 7:31 pm
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!