Developer forum

Forum » CMS - Standard features » ItemLists (deprecated)

ItemLists (deprecated)

Adrian Ursu
Reply

Hi Guys,

I just noticed in 8.8.1.0 that the ItemLists is gone.

I have checked on a previous version and it is marked as Deprecated.

Was it replaced by another similar option?

The ItemLists was a very nice functionality i would be very sad to see it go without an alternative.

Thanks,

Adrian


Replies

 
Nicolai Høeg Pedersen
Reply

Yes, that is now deprecated, but replaced by item relation list which can do the same thing.

http://developer.dynamicweb.com/releases/dynamicweb-8-8/important-notes-8-8.aspx

 
Adrian Ursu
Reply

Thank you.

I knew I overheard something related to the deprecation of the ItemLists but I was not sure in what context.

I will try it out.

Thanks,

Adrian

 
Adrian Ursu
Reply

Hi Nicolai,

I tried to use it but I keep getting this error. The version is 8.8.1.0

I have an item with 2 field. One field for an image and one for an ItemRelation list.

I tried adding items in the ItemRelation list and also tried without adding Items in the list.

Same error.

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Source Error: 

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.]
   System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) +2615
   System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) +107
   Dynamicweb.Content.Items.ItemList.BuildSearchSqlForItemType(String systemName, ItemType itemType, String[] searchItems, Boolean includeItemTypeName, Int32 topLimit, Int32 itemListId, Boolean sortItems, String sortBy, String sortOrder, Boolean filterItems, Int32& idColIndex, Boolean searchInItemLists, Int32 pageNumber, Int32 pageSize) +3355
   Dynamicweb.Content.Items.ItemList.SearchRelatedItems(ItemType itemType, Int32 itemListId, String searchQuery, String sortBy, String sortOrder, Int32 topLimit, Int32 pageNumber, Int32 pageSize, Int32& totalItems) +302
   Dynamicweb.Content.Items.Editors.ItemRelationListEditor.BeginEdit(EditorContext context) +751
   Dynamicweb.Content.Items.Editors.EditForm.RenderField(EditFormField field, TextWriter output) +577
   Dynamicweb.Content.Items.Editors.EditForm.RenderFields(Func`2 selector, TextWriter output) +1750
   Dynamicweb.Content.Items.Editors.EditForm.Render(TextWriter output) +36
   Dynamicweb.Admin.ParagraphEdit.RenderFieldsAndValidators(StringBuilder initialization) +373
   Dynamicweb.Admin.ParagraphEdit.Page_PreRender(Object sender, EventArgs e) +1307
   System.Web.UI.Control.OnPreRender(EventArgs e) +97
   System.Web.UI.Control.PreRenderRecursiveInternal() +197
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7763
 
Thomas Schroll
Reply

Hi Arian

I had the same problem. I had an existing item with the deprecated Item list, where I added a field of the new item relation list. The solution were to fill content to the fields of the item.

Hope this helps.

Regards Thomas

 
Nicolai Høeg Pedersen
Reply

Hi Guys

QA will look into this.

 
Christian Rud Skovgaard
Reply

Hi All,

Yes, unfortunately this problem crept into the release, but has been fixed in 8.8.1.1 and forward (TFS-23133)

The new hotfix 8.8.1.5 is just out and can be downloaded now from the Downloads section!

Kind regards

Christian

 
Adrian Ursu
Reply

Thank you guys.

I will ask for an update of the solution. In the meantime I will use Thomas's solution.

Thanks,

Adrian

 
Adrian Ursu
Reply

I have managed to use this Item List relation but I see an UI issue. You can select only Items that are allowed as paragraphs. And this makes the interface very crowded because you have to allow some Items to be used as paragraphs even if they are only intended as ItemLists.

Maybe I miss another setting but I would suggest keeping the ItemList as the option for ItemRelation and the Paragraphs as they were before,

Does it make sense?

Thanks,
Adrian

 
Nuno Aguiar
Reply

+1

 

You must be logged in to post in the forum