Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Episerver 11: Limiting content and page reference properties to values of a specific type in EPiServer CMS

$
0
0

Hi,

Is there a way in Episerver 11 to get this working (the global variant):

http://joelabrahamsson.com/limiting-content-and-page-reference-properties-to-values-of-a-specific-type-in-episerver-cms/

After added all steps from the post I tried several things, but nothing seems to work.

I still get the default picker when I use:

[ContentSelection(typeof(MyBlock))]
public virtual ContentReference MyProperty { get; set; }

Also when I changed propertytype from ContentReference to string or changed the ContentSelector ClientEditingClass from "epi.cms.contentediting.editors.SelectionEditor" to "app/Editors/HtmlSelectionEditor".

Anyone else has the same problem or a solution?

Thanks in advance.

Grtz Sander


Viewing all articles
Browse latest Browse all 9076

Trending Articles