Hi Team,
I have a requirement to implement Visitor groups based on logged in user company. I am going create custom visitor group criterion model class.
But here Companies are maintaining in content structure and i want to use it ContentReference propery while creating vistor groups but It is always showing textbox only. Below is the class which i have created.
[EPiServerDataStore(AutomaticallyRemapStore = true)]
public class CompanyCriterionSettings : CriterionModelBase
{
[Required]
[Display(Name = "Company name")]
public ContentReference CompanyName { get; set; }
/// <inheritdoc/>
public override ICriterionModel Copy()
{
return ShallowCopy();
}
}
Thanks,
Suresh B