Posted on 08/12/2016 02:42:34
Hi Simon,
item list still supported, so there is no urgent need to convert them.
However I if you want to make it anyway...
The instruction is not hard but rather big so it is necessarily to make backup of data before begin!!!
For example I convert item [ItemList_15555] with field [FldList] of type item list to a relation list:
1) Convert item xml definition
a) Open Files\System\Items\ItemType_ItemList_15555.xml
b) Find definition of item list field
c) replace it type:
type="System.Collections.Generic.IEnumerable`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib"
to
type="System.Int32, mscorlib"
d) replace editor type:
type="Dynamicweb.Content.Items.Editors.ItemListEditor, Dynamicweb"
to
type="Dynamicweb.Content.Items.Editors.ItemRelationListEditor, Dynamicweb"
e) replace all rows
addin="Dynamicweb.Content.Items.Editors.ItemListEditor"
to
addin="Dynamicweb.Content.Items.Editors.ItemRelationListEditor"
f) insert a row into <editorConfuguration> section:
<Parameter addin="Dynamicweb.Content.Items.Editors.ItemRelationListEditor" name="Item source" value="ListItem" />
2) Run sql script(see attached file):
NOTE! You have to replace 4 places in this script:
a) SET @TypeOfItemListItems = 'ItemListDetail' - there should be type of your field items
b) 3 rows with [FldList] and [ItemType_ItemList_15555] - this is system name of field and name of item table (ItemType_ + itemname)
3) Relogin into admin
Kind regards,
Vladimir