Menu

#78 Altern8news: Display stories from subtopics in search result

Patches
closed
nobody
None
5
2012-09-25
2004-12-07
Pat Deegan
No

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.

Regards,
Pat Deegan
Psychogenic.com

Discussion

  • Pat Deegan

    Pat Deegan - 2004-12-07

    Patch file for class.newsstory.php changes

     
  • Jan Pedersen

    Jan Pedersen - 2004-12-07

    Logged In: YES
    user_id=841117

    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.