Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Can i use ContentReference property under Custom visitor group CriterionModelBase

$
0
0

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


Viewing all articles
Browse latest Browse all 8020

Trending Articles