07.12.01
For the upcoming 0.5.2 and CaféLog: added the possibility to display only some categories on your page, or to display all but some of them.
How it works: first line of your blog template, you would add this line: <?php $cat="1and3" ?> to display only categories #1 and #3, or $cat="not2" to display all posts but category #2, or $cat="not2and4" to exclude #2 and #4. Or you can also make that into the querystring, with ?cat=not2and4.
Syntax: put 'and' between two numbers to associate them, and/or 'not' in front of all the string to exclude them.
How it works: first line of your blog template, you would add this line: <?php $cat="1and3" ?> to display only categories #1 and #3, or $cat="not2" to display all posts but category #2, or $cat="not2and4" to exclude #2 and #4. Or you can also make that into the querystring, with ?cat=not2and4.
Syntax: put 'and' between two numbers to associate them, and/or 'not' in front of all the string to exclude them.
4 comments
:: comments
Ricardo - email - url
This is excellent! To accomplish this I had modified the motor line and them some things started acting funny on me =)
This way I can have for instance, the index page with all categories except the guestbook and photo album on Ana's site without messing with sql queries =)
07.12.01 @ 19:21:40 056
Terminator - email - url
Thanks !!!
09.12.01 @ 12:23:25 766
ian - email - url
i recommend you do the separation thing with commas. programmer's manual.
10.12.01 @ 13:47:44 824
michel v - email - url
commas are not going to work well in an url.
10.12.01 @ 14:59:17 874
:: leave a comment