#78 Altern8news: Display stories from subtopics in search result

Pat Deegan

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.

The issue:
I have a site with general categories and specific
subcategories for news stories, e.g.

Science & Technology
- Health & Medicine
- Nanotech
- Space
- ...

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.

Pat Deegan


  • Pat Deegan

    Pat Deegan - 2004-12-07

    Patch file for class.newsstory.php changes

  • Jan Pedersen

    Jan Pedersen - 2004-12-07

    Logged In: YES

    Please post the patch on the xoops.org forums.

    This is for the XOOPS core, not individual modules. I am
    afraid that I don't know, who authored this module.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks