We have built a plugin that records the items you recently viewed. This works in conjunction with the normal entries tags:
{exp:weblog:entries weblog="myweblog" parse="inward" limit="4" fixed_order="{exp:recentlyviewed:get_entries weblog='properties' distinct='off'}"}
an then use fixed_order and the plugin to set the required entry_ids
This works a treat then but the issue we have it, sometime we may want to display the actual list, so returning multiple entries.
eg the list of IDs may be 1,3,5,4,3,2,1,4 as you can see there are repeats but these are not shown. the rendered list is as follows: 1,3,5,4,2
Pretty sure Lisa is absolutely spot on with this one (she always is actually 😉 ) as when I was making my Shopping Cart Plugin I had the opposite in that I didn’t want the same entry to show more than once so I went about coding the duplicates out but very early on in the testing found out that the weblog entries tag won’t actually output the same entry twice so that will definitely be the issue here.
If you mean is it possible to feed in entry_ids to a weblog tag with a plugin then yes this is definitely possible.
The way I do it with my plugins when I need to do that sort of thing is to use a plugin tag pair and then do this sort of thing :
{exp:my_plugin_name weblog="default_site" parse="inward"}
{exp:weblog:entries weblog="default_site" entry_id="{entries}" dynamic="off"}
<h2>{title}</h2>
{/exp:weblog:entries}
{/exp:my_plugin_name}
This way I get the entry_ids sent into the weblog entries tag which I’m guessing is what you need here.
Hope that helps a bit.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.