Similar articles by tags

Creating and modifying plugins.
Post Reply
Atratus
Regular
Posts: 51
Joined: Fri Feb 09, 2007 7:41 pm

Similar articles by tags

Post by Atratus »

Hey guys,

I'm searching for a possibility to show similar articles automatically. I'm using the free-tag plugin in, maybe there is a way to search for articles that have the same or even similar tags and show their titles under the original article.

Is there a plugin which already does what I want?

thx for reading
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Similar articles by tags

Post by judebert »

The freetag plugin should do that for you, too.

Just go to your admin page and choose "Configure Plugins". Then click on the "tagging of entries" plugin to display its configuration page. Finally, set the "Display related entries by tags?" to "Yes" and click Save.

The related entries will be displayed in the footer of each individual entry. They're not displayed on the front page summary, I think.
Judebert
---
Website | Wishlist | PayPal
Atratus
Regular
Posts: 51
Joined: Fri Feb 09, 2007 7:41 pm

Re: Similar articles by tags

Post by Atratus »

Oh man, that was very stupid, I'm very sorry for my dumbness...

but is there any way to display the articles somewhere else than in the footer?
I know there is now template, but it looks very ugly in my s9y-template...
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Similar articles by tags

Post by yellowled »

Atratus wrote:but is there any way to display the articles somewhere else than in the footer?
Unfortunately not, at least not unless you're willing to move it together with the "Tags" line. Those two are inseperable as far as I know.

YL
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Similar articles by tags

Post by judebert »

You're not dumb. You found the plugin on your own, after all.

The plugin looks like it's ready to use Smarty. Just set the configuration of the plugin so "Embed in footer" is set to "Smarty". Then modify your entries.tpl and add the Smarty tag

Code: Select all

{$entry.freetag}
wherever you want the HTML to show up. You could even create a new div, and change the CSS in your style.css to float it or something.
Judebert
---
Website | Wishlist | PayPal
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Similar articles by tags

Post by judebert »

I just verified this on my sandbox. Unfortunately, it also takes all the "defined tags" with it! Splitting the two would require modifying the plugin.

However, if you're willing to move both of the blocks, just use the Smarty as I mentioned.
Judebert
---
Website | Wishlist | PayPal
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Similar articles by tags

Post by Don Chambers »

judebert wrote:Unfortunately, it also takes all the "defined tags" with it! Splitting the two would require modifying the plugin.
That concept has my vote!! :wink:
=Don=
Atratus
Regular
Posts: 51
Joined: Fri Feb 09, 2007 7:41 pm

Re: Similar articles by tags

Post by Atratus »

okay thank you very much for your help.
it's a pity but it seems like i have to change my arrangements...

but maybe the inventor of this wonderful plugin could change it once... ;)
clafferty
Regular
Posts: 43
Joined: Tue Jul 18, 2006 8:47 pm

Re: Similar articles by tags

Post by clafferty »

quick question about this plugin --

why do the tags and related links only show on the article detail/extended view page? is it impossible to make the related links show on in the summary view (i.e., on the homepage)?

thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Similar articles by tags

Post by garvinhicking »

Hi!

Related entries lookup impose a huge impact on database performance. To do that for each entry on a page with multiple entries would be bad, and also waste a lot of screenspace. This is why the plugin doesn't support this in overviews with current code.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply