Page 1 of 1
any "related stories" option?
Posted: Thu Jan 02, 2014 8:25 pm
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)
Re: any "related stories" option?
Posted: Thu Jan 02, 2014 8:40 pm
by Rolf
Re: any "related stories" option?
Posted: Thu Jan 02, 2014 8:58 pm
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.
Re: any "related stories" option?
Posted: Thu Jan 02, 2014 9:07 pm
by turpentyne
oops... Posted on that blog page, as well - not realizing it was you. Sorry about that.
Re: any "related stories" option?
Posted: Thu Jan 02, 2014 9:07 pm
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.
Re: any "related stories" option?
Posted: Thu Jan 02, 2014 9:46 pm
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.
Re: any "related stories" option?
Posted: Thu Jan 02, 2014 9:56 pm
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