Related Entries Mango Plugin
This plugin makes use of a new event, standard as of Mango version 1.2. If your theme doesn't broadcast the "beforePostContentEnd" message, you will have to add it manually. (Don't worry, it's not difficult.)
My Related Entries plugin for Mango Blog will allow you to specify blog posts that are related to one another, and display a list of related entries at the end of each post — if any exist.
Download the latest version:
Last updated 2008-12-17
Feedback:
Issue Tracker
Operation:
When the plugin is installed and activated, it adds a new section to the bottom of the new blog post form:

You can use these new boxes when adding a new post or editing an existing one; they will remember what was previously entered for a given post.
Select one or more post categories from the left box. Use control-click or click-and-drag to select multiple. This will perform an AJAX request and get back a list of all posts from the selected categories, in the middle box. Single-clicking the post title in the center box will add it to the right box. Anything in the right box when the form is submitted will be related to the current post. To remove an entry from the right box, double click it.
Manual addition of the required display event:
If you made a custom theme or your theme pre-dates Mango 1.2, you may have to add a new message broadcast so that your related entries are displayed. Don't worry, it's one line of code and the only thing that matters with it is where you put it (and that's pretty simple, too). This is the line you need to add:
And you just need to make sure it goes inside of a <mango:post></mango:post> block, like so:
Posted in ... ...



Which page do you put this in?
I put it into the skins post page well actually it is already there but I still only get 1 box and I tried all the skins. This is on a fresh 1.3 install as well.
thanks
Dave,
As my notes said, if your theme or Mango install pre-dates Mango 1.2, you'll need to add the line:
<mango:Event name="beforePostContentEnd" />
Since you're using a Mango 1.3 install, and probably a recent theme, you shouldn't have to add it. You say you're only seeing one box... what else are you expecting? Do the 3 lists display on the new-post page?
I have 3 boxes but can only get items in the first.. I can't drill it down.
http://www.quicksnapper.com/jamwerx/full/posts/
That would indicate some issue with the ajax it's using to populate them. I won't be able to test it on Railo until much later this evening. Can you email me a login for your blog so I can see it in action?
Hi Adam,
I found the problem with Railo for your plugin.
In the plugin.cfc
Init function
I add this line
<cfset variables.manager = arguments.mainManager />
In the function processEvent
around line 114 I change this line <cfset local.relEntryObj = blogManager.getPostsManager().getPostById(listFirst(local.relEntryId,'|')) /> to this line
<cfset local.relEntryObj = variables.manager.getPostsManager().getPostById(listFirst(local.relEntryId,'|')) />
I tested on Railo 3.1 Beta on Windows Vista and Linux
Regards
PO
I have got the plugin installed and I can see the 3 boxes in the admin post. However after selecting related entries they do not show on the live site. The tag is there as this is Mango 1.3.1.
Anything I could look to see why it is not working?
Hey Adam, I'm experiencing the same issue as the latest bug mentoned on riaforge and possibly as Dee above. Admin all works fine but on the post only the the title 'Related Entries:' is displayed. No related items are listed. This on CF8 win 2003, mango 1.3.1.
I've also noticed that once a post is designated as having related items, the title 'sticks' regardless of whether the related posts are removed and cache cleared.
I'll try and look into it time permitting but if you have any ideas it'd be appreciated.
Pierre, Dee, and Gareth-
Thanks for the comments/bug reports. I've finished working on a new version that should address all of your issues, now I just need to make time to test it on CF7, Railo, and OpenBD. It's coming soon...
Cool plugin, installed within seconds and straight onto my website with no hassle.
Thanks