Hi folks,
I'm struggerling to get items out of DW. The items have been created using the model first way so don't have a CLR type. They are all on one page as paragraph items and the item type system name for them is "Activity"
I've tried two ways to get them but neither is working.
ItemManager.Initialize();
using (var repo = ItemManager.Storage.Open("Activity"))
{
var myItems = repo.SelectByPageId(2530); // 0 items returned?
}
var items = new ItemCollection();
items = ItemManager.Storage.GetByPageId("Activity", 2530);
return items;
Can someone point out what I'm doing wrong?
Cheers,
Alec