Home
N-13 News
Forums
Help
Search
Username
Password
Register
Forgot 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 (or more) different templates on SAME page
Ego
Posted on 08 Jan 2010, 14:09:42
Access: Member
Total Posts: 16
Joined: 2009-09-25
Hi all,
is it possible to use two (or more) different templates on SAME page ?
e.g.
<?php
$template = "template1";
$cat[] = "cat1";
include 'news/index.php';
?>
<?php
$template = "template2";
$cat[] = "cat2";
include 'news/index.php';
?>
Thanks
#1460
Chris
Posted on 08 Jan 2010, 14:31:41
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Certainly can. Have a look
here
which shows you what you need to do.
#1462
Ego
Posted on 08 Jan 2010, 14:45:10
Access: Member
Total Posts: 16
Joined: 2009-09-25
I made a test page using :
<?php
$static = true;
$cat[] = "newsletters2";
include 'news/index.php';
?>
<hr>
<?php
$cat[] = "newsletters1";
include 'news/index.php';
?>
BUT on the
test
page it shows only the first include (both categories have one posting)
#1464
Last edited by Ego at 2010-01-08 14:45:59 Reason:
Chris
Posted on 08 Jan 2010, 14:56:47
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
That's odd, I just tested this
here
and it works fine.
Do you have version 3.4 installed?
#1465
Last edited by Chris at 2010-01-08 14:57:00 Reason:
Ego
Posted on 08 Jan 2010, 15:01:13
Access: Member
Total Posts: 16
Joined: 2009-09-25
No, I use 3.3 version...
Is it NOT possible with 3.3 ?
#1466
Chris
Posted on 08 Jan 2010, 15:02:51
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Multiple includes was added in version 3.3 but it was improved somewhat in 3.4 so I would definitely recommend upgrading to 3.4 or doing a fresh install.
#1467
Ego
Posted on 08 Jan 2010, 15:07:20
Access: Member
Total Posts: 16
Joined: 2009-09-25
Chris, I cannot upgrade to 3.4 cause my hosting server doesn't support PHP5...
Have to stick to 3.3
And this is a clean installation, I have just set it up today
Is there something else I could do in order for multiple includes to work?
Could I check something?
Any piece of coding perhaps?
A prear?
#1468
Chris
Posted on 08 Jan 2010, 15:20:05
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Unfortunately not. Most of the system was re-written for 3.4 so I don't want to start making changes for an older version.
#1469
Network-13.com © 2013