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 Headlines (showing past news)
Blablabla05
Posted on 29 Jul 2010, 03:49:16

Access: Member
Total Posts: 2
Joined: 2010-07-29

Let's say my main page shows 4 news (news1, news2, news3, news4). At the bottom of the last news, I want to show the headlines of the 4 older news (news5, news6, news7, news8).

Can it be done? If so, how?


Stephane
#2768
Blablabla05
Posted on 29 Jul 2010, 21:25:48

Access: Member
Total Posts: 2
Joined: 2010-07-29

I managed to find the solution. Here's how.

I have 4 news fully displayed (id=9, id=8, id=7 and id=6). How to display only the headlines of the preceeding news (id=5 and below)?

Archive the news with id=5 and below. The code on your page should look like this to display only the headlines:

Code:
<?php 
$static 
= true; // important for multiple includes
$archives = '1'; // 1=yes (to displays archived news)
$nppage = '3'; // number of news to display (headlines id=5, id=4 and id=3 in this case)
$template = 'headlines'; // template to use for displaying headlines
include 'news/index.php';
?>



Stephane
#2769
Network-13.com © 2013