I'm looking to implement a similar posts feature on my site where in the sidebar, each post entry shows a random list of 5 'related' posts.
As I'm still new to Cake I'm not sure if this is best with an Element or as a Helper. However, looking at the manual it seems that we can pass variables to Elements - would I be right in thinking that this is the best option? ...and while I have you attention :) To keep things simple I'll just use the category_id for my comparison, but I'm trying to decide on the best way to populate this list. Would this be to run a find on the posts table during each page load and then select the 5 random entries, or use and create an extra table in a similar way that the WordPress 'Similar Posts' plugin does? I've never before even thought about how a feature likes this works, so I'm hoping to get your thoughts on the subject. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
