1 davidnewcomb Sep 05, 2013 11:42
3 davidnewcomb Sep 06, 2013 15:35
Thanks. I've found the a_noskin.php and had a look.
I can't see any configurations to restrict the posts by category or add filters. I've had a search to look for examples but couldn't find much on this site or via Google.
Is there something I've missed? Can you direct me to where I can find more information on this?
4 fplanque Sep 08, 2013 02:41
Just add variables to force params in the PHP code. Look at this for an example:
http://b2evolution.net/man/glossary/generic-vocabulary/stub_file
5 davidnewcomb Sep 10, 2013 01:19
Found the list of possible values that can live in the a_stub.php file. Please can you clarify the documentation for "cat" and "catsel%5B%5D" on the following page, as it's impossible to be certain what it means!
http://manual.b2evolution.net/URL_Parameters
Am I right in thinking that:
$cat = '-5';
will show articles not in category 5 and not in any of category 5's subcategories?
6 fplanque Sep 10, 2013 01:34
Yes this sounds absolutely right ;)
7 fplanque Sep 10, 2013 01:44
and I made a partial update of http://b2evolution.net/man/advanced-customization/technical-reference/url_parameters
8 davidnewcomb Sep 10, 2013 15:44
In version 4.1.7 is appears to be broken :(
Entering http://www.bigsoft.co.uk/blog/index.php?cat=-5 forwards me to http://www.bigsoft.co.uk/blog/index.php/fun/ and only shows articles in the fun category (and below).
9 davidnewcomb Sep 10, 2013 17:17
It appears to be broken in 5.0.5 as well. Can you check please.
10 davidnewcomb Sep 11, 2013 12:57
I think the problem is in inc/collections/model/_category.funcs.php compile_cat_array()
I'd like to report this as a bug!
11 davidnewcomb Oct 07, 2013 15:53
Is anyone able to confirm this?
12 mgsolipa Oct 07, 2013 20:44
Hi @davidnewcomb,
I confirm that something is going wrong when trying to exclude categories with minus ( - ). The development team will be reported about this. Thanks.
Don't root your blog at the root of your site and use a "noskin" page for your home page where you can set all kinds of filterings as desired.