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 Selecting $cat with conditions?
Tegwin
Posted on 27 Oct 2008, 14:18:10

Access: Member
Total Posts: 8
Joined: 2008-08-07

Code:
<?php
$cat 
= "catagory 1";
$template = "news pages";
include 
'../news_engine/index.php';
?>


If I use that, all of the "catagory 1" stories are shown....

I have 6 catagories... BUT I only want catagory 1, 2 and 5 to disaply...

Is there anyway of selecting which ones I want to show, or is it simply a case of all of them, OR one of them?
#463
Corneliusw
Posted on 29 Oct 2008, 07:37:28

Access: Member
Total Posts: 16
Joined: 2008-10-15

I would like know the answer to this also. I hope we can do it!
#465
Joostthehost
Posted on 30 Oct 2008, 11:37:11

Access: Member
Total Posts: 10
Joined: 2008-10-21

Quote:
I have 6 catagories... BUT I only want catagory 1, 2 and 5 to disaply...

Is there anyway of selecting which ones I want to show, or is it simply a case of all of them, OR one of them?

It how you say it is. You could include your index.php file multiple times to show different categories each time, but i believe N-13 isn't designed to work that way; so it'll probably won't work.
Maybe it's possible for you to merge category 1, 2 and 5 into just one category? :noexpression:
#477
Bazookajoe
Posted on 02 Feb 2009, 22:24:59

Access: Member
Total Posts: 1
Joined: 2009-02-02

I recently found this script and absolutely love how simple it is to use and configure. This thread details one of the few feature I want to implement. I too need to aggregate the contents of 2 or more categories for display.

One option I thought of was to assign multiple, comma-delimited, categories to the $cat variable and parse the variable value on the back end. Of course the script will have to me modified further to gather the results for display.

If a better option does not come along in the next day or so, I will try this and post the results to this thread.
#505
Network-13.com © 2013