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 Two (simple) questions.
Hhawk
Posted on 14 Feb 2011, 15:37:37

Access: Member
Total Posts: 94
Joined: 2010-03-01

I have 2 questions;

Question #1:
How do I only display the last (latest) news article? I want only to show the latest news on the main / frontpage, instead of all articles. I already tried:

Quote:
$nppage = '1';

But that didn't do anything and is still showing all the articles available?


Question #2:
I created a 2nd template called "Hoofdpagina" in the Admin control panel, which is only going to be used on the main / frontpage. However when I select it with:

Quote:
$template = 'Hoofdpagina';

It will still use the original template? What am I doing wrong here?


I am using the latest version of N-13 News (4.0.1).
#3204
Last edited by Hhawk at 2011-02-14 15:37:51 Reason:
Chris
Posted on 14 Feb 2011, 15:41:33

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

Can you show me the include code you're using?
#3205
Hhawk
Posted on 14 Feb 2011, 15:46:20

Access: Member
Total Posts: 94
Joined: 2010-03-01

Oops... I made a really stupid mistake. :P

I did:

Quote:
<?php
include 'nieuws/index.php';
$template = 'Hoofdpagina';
$nppage = '1';
?>

instead of:

Quote:
<?php
$template = 'Hoofdpagina';
$nppage = '1';
include 'nieuws/index.php';
?>

I always thought u had to put the script first, so my bad.

Sorry for bothering you Chris. :)
#3206
Network-13.com © 2013