A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Custom Property Value not Saving on Page Publish

Vote:
 

Hi,

I am having issues with custom properties in EpiServer 7.5. I have a Tagging control that displays a list a categories in a tree format. This is my property [Display(GroupName = Global.GroupNames.Tags,
Order = 40,
Name = "SLO Tags",
Description = "SLO Tags")]
[CultureSpecific(true)]
[BackingType(typeof(PropertyTagMultipleSelector))]
public virtual TagCodeList SLoTagCodeList { get; set; }

//


/// Custom property - tag tree selector.
///

[Serializable]
[PropertyDefinitionTypePlugIn(DisplayName = "Tag Tree", Description = "Allows selection of multiple tags")]
[EditorHint("Tag Tree")]
public class PropertyTagMultipleSelector : BasePropertyTagMultipleSelector
{
///
/// Initializes a new instance of the class.
///

public PropertyTagMultipleSelector()
: this(new TagCodeList())
{
}

....

}

The same code works fine in EPiServer 6 R2 but when i save the tag the values and click on Save and Publish, the property value is not saved for the Page. Can somebody please advice me on this issue?

#123485
Jul 07, 2015 18:10
Vote:
 

Also for some reason, the save()

/// <summary>
/// Saves the data.
/// </summary>
/// <param name="properties">The properties.</param>
/// <returns></returns>
public override object SaveData(PropertyDataCollection properties)
{
return _tags.ToString();
} does not get called.

Any help will be greatly appreciated.

#123486
Jul 07, 2015 18:12
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.