AI OnAI Off
Hi Suresh,
Unless I misunderstand the question, you can just do:
public virtual PageReference ProductPage { get; set; }
Its also possible to restrict the root which editors can select pages under, to do this you just need to add an editor descriptor. As an example, here is one that would limit them to selecting an item in the trash:
[EditorDescriptorRegistration(TargetType = typeof(PageReference), UIHint = "wastebasket")]
public class WasteBasketPageReferenceEditorDescriptor : PageReferenceEditorDescriptor
{
public override IEnumerable<ContentReference> Roots => new List<ContentReference> { ContentReference.WasteBasket };
}
It's then just a case of using a UI Hint (as per your example):
[UIHint("wastebasket")]
public virtual PageReference DeletedPageLink { get; set; }
Hi,
I need to show search option for content pages in "Select Content" popup for editors. I have below few page type properies across the application.
1) public virtual ContentReference ProductPage { get; set; }
2) public virtual IEnumerable<ContentReference> Industries { get; set; }
Editors are facing difficulties to identify the required page to map becuase sometimes editors has to go multiple level of tree structure to map it.
For media files, we are getting search option. Below is the sample example
[UIHint(UIHint.Image)]
public virtual ContentReference DefaultWhiteLogo { get; set; }
Can you please someone assist to get search option "Select Content" for content pages as well?
Thanks,
Suresh B