get content items by list of id's

Mar 9, 2016 at 8:37 AM

How would I go about getting a list of content items by entityid

Sort of like a store set up so I have a list of items and these can be added to a compare list. If clicking the compare button it goes to a new page compare.aspx?cid=1,5,8,45,89,45,61

What is the best/easiest way to get a list of just the items with these ids in my razor template.
Mar 9, 2016 at 1:34 PM
You can use a data-query (visual query / pipeline). Use the id-filter, you can give it multiple IDs
Mar 10, 2016 at 8:43 AM
Edited Mar 10, 2016 at 8:43 AM
Ok great another thing learned never thought about trying it that way :)