Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-12-06 02:09:58
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Helper Function: Modified getTree() with Per-category Article Count
As part of a plugin re-write I’m doing for a client’s website, I’ve created a modified version of the built-in getTree
function — aam_getTree_witharticles
. It adds a per-category article count to the array of category information that’s returned. It’s compatible with the rss_unlimited_categories plugin if you pass a value of true
for the $uccompat
argument.
As a derivative of Textpattern code, this helper function is licensed under the GNU GPL v2. I’m posting it here in the hope that other plugin developers will find it helpful in their work.
My thanks to Mary and Ruud, who helped me out with the SQL this function uses.
Last edited by Logoleptic (2007-12-06 03:29:45)
Offline