Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: list categories under it's section
I updated cbs_category_list so now by default it doesn’t count the articles in the categories. However, I don’t think it’s the perfect solution to call the plugin for each section because it will perform a mysql query for each section. It can be done with a single query if someone write the appropriate code.
My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)
Offline
#14 2005-10-06 00:45:59
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: list categories under it's section
Its quite sad there is no simple way to list a list of categories that fall under a section.
There are at least two plugins that do this.
Alex
Offline
#15 2005-10-06 00:51:08
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: list categories under it's section
stw_category_tree is one, I think
Offline
#16 2005-10-08 13:26:07
- grad
- Member
- From: Poznan, Poland
- Registered: 2005-10-04
- Posts: 24
Re: list categories under it's section
I couldn’t make stw_category_tree to display only categories used in current section. But it’s easy with cbs_category_list
Offline
#17 2005-10-10 00:30:30
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: list categories under it's section
grad, try <code><txp:stw_category_tree start=”*s” /></code>
Offline
#18 2005-10-10 10:07:43
- grad
- Member
- From: Poznan, Poland
- Registered: 2005-10-04
- Posts: 24
Re: list categories under it's section
nardo, I’ve tried this with rev. 888 but it didn’t work. Upgraded TXP to latest SVN (rev. 1011 at the moment) and got the same error <code>tag_error <txp:stw_category_tree start=”*s” /> -> Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource</code>.
Also, I noticed that if a category name containes HTML entity (<code> </code> namely) it is displayed as code.
Last edited by grad (2005-10-10 14:36:52)
Offline
#19 2005-10-10 13:32:53
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: list categories under it's section
good to know, grad – btw I tested on 4.0.1
will try the updated cbs version
Offline