Creating the list of related stories on each entry permalink is really easy. This is based on the Devlounge tutorial by Bill Mabray, but I've modified the template code slightly to make it work with Mid-Century. Remember, for this to work your entries have to be tagged consistently.
First, go to Design > Templates and click to edit the "Entry" Archive Template and find the two <mt:Include> tags that insert the Trackbacks and Comments modules. You'll be adding the new template code just above these. Next, copy and paste this code snippet (will open in new window) above the Trackbacks <mt:Include>.
Make sure that when you paste in the snippet the quotes are not converted to smart quotes (“ ”) in MT. It wasn't working for me at first and then I realized that this had happened and had to change all the quotes.
That should do it. Let me know if you have any difficulties.
Yay! It works :)
Thanks Jim!
Seconded - thanks!
is there a way to display only a limited number of related entries?
ps: great post, snippet works perfectly
To limit the number of related entries find this line in the Entry archive template:
<mt:setvarblock name="listitems"><mt:entries tags="$sgtags">...
and add lastn="10" to the mt:entries tag to it looks like:
<mt:setvarblock name="listitems"><mt:entries lastn="10" tags="$sgtags">...
very cool! have you thought about adding any weighting or similar? entries that have more hits get higher priority then those that only match one?
Does this work with dynamically published entries?