This is a hack for the altern8news module--I'm not
certain this is the place to send it, but the module's
copyright is assigned to xoops.org and I can't locate
any other contact info.
I have a site with general categories and specific
subcategories for news stories, e.g.
Science & Technology
- Health & Medicine
As the module currently functions, selecting the
stories in "Science & Technology" returns 0 results
(all the stories are stored in subcats), which seems wrong.
I created a quick hack to address this issue, by
fetching stories for the requested topic_id as well as
those from immediate children of the topic.
The function as it now stands does not recurse down to
grandchildren, great-grandchildren, etc. -- this wasn't
required in my case and could lead to problems (e.g.
the database somehow ends up with circular references).
I have attached the patch file that includes this change.
Log in to post a comment.