Developer forum

Forum » Feature requests » ItemPublisher should support filter by ID

ItemPublisher should support filter by ID

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I think another useful feature when playing with ItemPublisher lists would be the ability to use the ItemID in the filter conditions. Speaking of which, a documentation on how to use the Filter with RenderItemList would be very nice.

In my no-so-vast experience with ItemPublisher I found that sometimes you might also need to use attributes of the Page that is based on those ItemTypes. Maybe it worths considering this as well.

Thanks,

Adrian

 


Replies

 
Nicolai Pedersen
Reply

Hi Adrian

Not sure I understand the feature you request - could you make an example? The documentation of filters for item publihser can be found here: http://doc.dynamicweb.com/documentation-8/content/items/item-publisher#sideNavTitle1-2

Thanks, Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Sorry for being so brief in my request.

I am mainly referring to the Filter functionality of the ItemPublisher.

In the filter settings when you use the Module in the backend, you cannot use ID of the item as a condition. ID=Something. You have all the other filters though.

As for documentation, I am interested in a documentation of the Filter syntax and option when you are using the RenderItemList directly in the template.

It looks like in there, the ID is somehow supported if you use @"Item.Id =Something".

I could use a more elaborate documentation of how to properly use the Filter, because I think this is pretty powerful.

Thanks,

Adrian 

 
Nicolai Pedersen
Reply

ok.

I'll have the docs updated with a filter example in the RenderItemList.

You can find examples here: https://github.com/dynamicweb/dwtc15/blob/master/mri/Files/Templates/Designs/Dwtc15/razor/News.cshtml

And here: http://doc.dynamicweb.com/forum/templates/renderitemlist-and-filter

BR Nicolai