Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Use different templates
Ego
Posted on 17 Dec 2009, 10:30:21

Access: Member
Total Posts: 16
Joined: 2009-09-25

Hi all (especially chris :new_grin: ),

I wonder if I can use more than one template to show different structure of the news in different pages...

e.g. in page "news" i use category news and i want ot show only {date} and {title}
in page "press" i want to use category "press" and show only {story}
etc

I know how to show each category in each page : $cat[] = "news"; #show posts assigned to News

BUT

how can i use different templates for each category in respective page?

Any help?

Thanks...


#1269
Last edited by Ego at 2013-09-30 20:27:37 Reason:
Ego
Posted on 17 Dec 2009, 11:04:58

Access: Member
Total Posts: 16
Joined: 2009-09-25

This Post was so helpfull...

:online2long:
#1270
Chris
Posted on 17 Dec 2009, 13:26:03

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Hi Ego,

I assume you figured out how to do it.

Code:
<?php
$template 
= "template1";
$cat[] = "cat";
include 
'news/index.php';
?>
#1271
Last edited by Chris at 2009-12-17 13:26:18 Reason:
zuiderburen
Posted on 30 Sep 2013, 20:27:36

Access: Member
Total Posts: 4
Joined: 2013-09-16

I hae an additional question related to this post. I managed to integrate the news of different categories in different pages of my website. Im order to make it any clearer you can check http://www.zuiderburen.com/index.php. On the 'HOME' page you see the news items assigned to all categories, except one. The items assigned to that particular category you will see on the page called 'OVER DE CLUB'. Both pages do have their own template. The point is that all search results are linked to the general template, which is used at the 'HOME' page. As you can see on http://www.zuiderburen.com/overdeclub.php there is no date in the news items, but when I search for the word 'missie' on the 'HOME' page the result is linked to the template including date. Is there a way to solve this issue? Thanks a lot for your help.

#4053
Network-13.com © 2013