[Tag 2] rank_limit
Posted: 22 August 2007 03:27 AM   [ Ignore ]
Newbie
Rank
Total Posts:  9
Joined  2005-04-24

Hi all,

I’ve read the docs and played around changing the values but I’m still not 100% clear on what this parameter does within the tag:related_entries tag.

Can anyone explain more than the docs do?

Cheers,
j.

Profile
 
 
Posted: 22 August 2007 10:13 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Yeah Small Beer! We go back a long way!

Ok, so the related_entries function let’s you pull blog entries related to a given entry by tags. But you can further refine the relationship by selecting the related entries by the rank of the tags associated with them. You can rank the tags by total clicks a tag has received, by total entries a tag has, or both. This way you can show the related blog entries and filter out the outlier tags that, because of low rank, don’t mean that much.

So rank_limit is the param that you use to control by how many tags to fetch related entries. Remember, this function behaves just like the weblog entries function. So the ‘limit’ param controls how many blog entries to show, while the rank_limit controls how many tags to consider when establishing relationships between entries.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 22 August 2007 01:02 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  9
Joined  2005-04-24

Hey Mitchell, that makes much more sense now, cheers!

Do you think there’s any way of actually choosing tags when adding them that are ranked higher when relating entries?  Here’s my thinking (tell me I’m mad if you like!)…

When you add tags on the publish/edit page, if you wrap a word in something, say exclamation marks i.e. !Jamie!, when it’s added to the tags tables a column called “weight” is increased by 1.  So then you can have an extra value to use with the rank_method parameter, i.e. rank_method="weight".  The exclamation marks would obviously be removed from the tag.

Sound crazy?  Maybe, but we really need a way of ranking by tags that are important to the entry but which may not be particularly popular.

Let me know what you think!

Profile
 
 
Posted: 22 August 2007 03:14 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

You’re mad

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 27 August 2007 08:52 AM   [ Ignore ]   [ # 4 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

You need a method to give more “weight” to a few tags? Use “official” ones and query them first, separately. I don’t think the exclamation mark method’s gonna fly.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 28 August 2007 12:26 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  9
Joined  2005-04-24
Ingmar - 27 August 2007 08:52 AM

Use “official” ones and query them first, separately.

I’m not really following that Ingmar.  Can you explain?

Profile
 
 
Posted: 28 August 2007 01:06 AM   [ Ignore ]   [ # 6 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Well, maybe I’m barking up the wrong tree here. My train of thought was this: Use a limited set of “official” tags, and display them first, ie before the rest of the tag cloud, or wherever you’ll be using them. Really depends on how you are using tags, I suppose.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 31 August 2007 03:07 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  9
Joined  2005-04-24

Thanks Ingmar but that wouldn’t work for us.  We’re gonna rethink relating entries and use something other than the tag module.

Profile