any "related stories" option?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
turpentyne
Forum Members
Forum Members
Posts: 34
Joined: Tue Oct 08, 2013 8:29 pm

any "related stories" option?

Post by turpentyne »

Hi...

I'm curious is there is any option out there for incorporating a "related stories" module or something of that nature for the news section? Not sure how it would be done. Perhaps there are tags that can be applied to a story.

I just think it would be nice to be able to have a section off to the side of a story, that lists other links and adds to the user experience.

(to clarify: I don't mean stories in the same category. Stories from any category that might match a few key words)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: any "related stories" option?

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
turpentyne
Forum Members
Forum Members
Posts: 34
Joined: Tue Oct 08, 2013 8:29 pm

Re: any "related stories" option?

Post by turpentyne »

Oh! Hadn't seen that page. Not quite sure it's what I mean though?

At a glance, that looks like its just to list tags down the side, right? I might have explained it wrongly, when I mentioned tags. Rather than showing tags, I want to show the top x number of stories that most match, linked of course:

Something like this:

Related stories
------------
Story title 1 >
Story title 2 >
Story title 3 >

I suspect there's gotta be a way to reconfigure something like that Tagcloud option maybe to do this? not sure.
turpentyne
Forum Members
Forum Members
Posts: 34
Joined: Tue Oct 08, 2013 8:29 pm

Re: any "related stories" option?

Post by turpentyne »

oops... Posted on that blog page, as well - not realizing it was you. Sorry about that.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: any "related stories" option?

Post by Rolf »

The blog I posted is about tags, like in http://buispost.eu/image-library/1116/u ... tube-photo

In your case you might consider using the CGBlog module. You can assign multiple categories. I used it in my blog to group the blogs. see the list in sidebar.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: any "related stories" option?

Post by Wishbone »

Using Rolf's CGBlog idea, inside the detail template, you can write a foreach loop that calls a summary template for each category for this article.. Then collect what shows up and order them by relevance (most categories matching) .. Not easy or efficient in Smarty.. You can pass data to a UDT that scans the database in one call, organize the data, put it in smarty for the detail template to display. Not too hard with a bit of PHP and MySQL ability.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: any "related stories" option?

Post by calguy1000 »

try this:

{Search action=dosearch searchinput='keyword1 keyword2' module='Module'}

which "should" do a search for those keywords (OR relationship) and return matches by weight your search result template could then limit the results to the first N
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”