public override void UpdateEditor(ContentItem item, Control editor)
        {
            LinkItemCollection coll = LinkItemCollection.FindByPageAndPropertyName(item, Name);

            List <ILinkItemCollectionPlugin> plugins = PluginTypesAvailable != null
                ? LinkItemCollection.PluginList.Where(x => PluginTypesAvailable.Contains(x.GetType())).ToList()
                : new List <ILinkItemCollectionPlugin>();

            ((LinkEditorControl)editor).Initialize(item, coll.ToJSONString(), plugins, coll == null ? 0 : coll.Count, !DisableLinksOption, !DisableImageOption);
        }
        public string Rebase(string value, string fromAppPath, string toAppPath)
        {
            //The value being passed in is the raw JSON value stored for the property
            //We need to identify all links that need to be rebased
            LinkItemCollection coll = LinkItemCollection.Empty;

            if (LinkItemCollection.TryParse(value, out coll))
            {
                foreach (LinkItemBase item in coll)
                {
                    item.RebaseLinkItem(fromAppPath, toAppPath);
                }
            }

            return(coll.ToJSONString());
        }