*UPDATE: I have just been informed that the Related Entries plugin already does this; it's just not documented at the site. You can use it like this:
<MTRelatedEntries field="keywords">
<MTEntries lastn="3">
<p><a href="<MTEntryLink>"><MTEntryTitle></a> -
<i><$MTEntryDate format="%b %d, %Y"$></i></p>
</MTEntries>
</MTRelatedEntries>
Prompted by a thread on the MT Support Forums , I wrote yet another plugin.
Here's an example of how you can use it:
<MTEntries lastn="6">
<$MTEntryTitle$>
<ul>
<MTRelatedEntriesByKeyword>
<MTEntries lastn="5">
<li><$MTEntryTitle$></li>
</MTEntries>
</MTRelatedEntriesByKeyword>
</ul>
</MTEntries>
Download relatedkeyword.tar.gz or relatedkeyword.zip, unpack it, and place relatedkeyword.pl in your plugins directory.
MTRelatedEntriesByKeyword
- Acts exactly like the MTRelatedEntries plugin
- Keyword note: this plugin assumes all keywords are stored as single "words" seperated by whitespace (e.q. 'plugins', 'computers', and 'movable_type' are keywords it sees, whereas 'movable type' is seen as 'movable' and 'type')
ChangeLog
- Version 0.1: First version
Related Entries already does this, it's just not documented.
one thing i wish, is that it would list which 'keyword' that link was related to...
or actually listed all the keywords, then placed a link on the keyword if there were related entries for that keyword.
categories does *something* like that, but, it is not as transparent in the MT interface. (you can only see the primary category in the drop down menu, and this also affect category archiving, when you may not want a full category archive for each keyword)
It would be great is if this plugin could (optionally) sort matching entries by relevance. i.e. if you have an entry that has 5 keywords, and another entry with the same 5 keywords, that is a 100% match. If you have a third entry with 3/5 keywords, that is a 60% match to either of the first two, etc. This percentage should be exposed through some tag, i.e. .
One usefull spinoff would be to have a tag to filter entries by keyword. Just like this plugin but outside the context of a specific entry.
MTFilterEntries keyword="selected"
MTEntries lastn="3"
blah blah
/MTEntries
/MTFilterEntries
MTRelatedEntries does that in the context of an individual archive. What I would like to be able to do is set a keyword "selected" to specific entries and have them popup on the main index page.
I was just wondering how easy would it make to create a plugin, that works similar to the category-based archive listing, but only based on keywords.
This is something similar to what dimitri is proposing in his previous note...
Can this work (i know i know, we are in 2006) with dynamic publishing in MT 3.2 ?