Developer forum

Forum » Development » RenderItemList in DW 9.3.8

RenderItemList in DW 9.3.8

Kenneth Radoor
Reply

Trying to render a list of item in a paragraph template, where i dynamically get a list of Ids of the item i want to render.

im using the following code:

    var DataFromItem = RenderItemList(new {
        ItemType = "News",
        ListSourceType = "ItemEntries",
        SourceItemEntries = itemIds,
        ItemFieldsList = "*",
        ListTemplate = "ItemPublisher/List/List_News.html",
        ListPageSize = "100"
    });

where itemIds is the list of id i get.

the list could be something like "173,180,225,232"

the method do not return anything in the loop.

If the list if ids just contains a single id, then the template will return a single result in the template.

The template is very simple and just contains a few fields in the "ItemPublisher:Items.List" loop.

The template is getting called, if i place a TemplateTags outside the loop then i get the tags, inside the loop = nothing.

The solution has just been upgraded to 9.3.8, and it did function as i would expect in the previous version.

is it a bug ?? or ...

I have been looking for some documentation for the RenderItemList method, but i cant locate it :(

/Kenneth


Replies

 
Kenneth Radoor
Reply

PS.

i have found the documentation now.

cool

 

 

You must be logged in to post in the forum