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 How to Display Headlines
ohmlama
Posted on 20 Mar 2012, 02:02:30

Access: Member
Total Posts: 4
Joined: 2012-03-13

Dear Chris,

How to display the heading one of particular Category only ?

Regards Ohm

#3794
Chris
Posted on 20 Mar 2012, 13:31:48

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

Create a new template, name it Headlines. In the News section of that template, use the following code

<span class="headline">{title}</span>

When displaying your news, use the following code

<?php
$template = 'Headlines';
$cat[] = "Sports";
include 'news/index.php';
?>

This will use the headlines template thus only showing the title of each article and will only display articles that are assigned to the Sports category.

#3795
Network-13.com © 2013