Developer forum

Forum » CMS - Standard features » RenderItemList for Named ItemLists

RenderItemList for Named ItemLists

Adrian Ursu
Reply

Hi guys,

I am trying to list osme Items that have been defines as Items in an Named ItemList.

I am trying to use RenderItemList in Razor and I could not find specific indications on how to render them.

I have tried listing all ItemTypes of that type using Area source type but without any luck.

Apparently it skips the items that are in NamedItemList.

I am using version 8.7.0.7

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

The docs with Razor example can be found here: http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/Module-tags/Item-publisher/Item-Render.aspx

Can we see the code you try to use?

 
Adrian Ursu
Reply

Hi Nicolai,

I know that documentation but it does not say anything about using Named Item Lists.
I have found something in a Template from Mikkel on Github.

Here is the link in case anyone needs details until you update the documentation:

https://github.com/dynamicweb/dwtc15/blob/master/mri/Files/Templates/Designs/Dwtc15/Partials/_Comments.cshtml

Thanks,

Adrian

 

 

You must be logged in to post in the forum