London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi,
You create a display tempate for ContentReference and put it in /views/shared/DisplayTemplates/. I think this is already done in the Alloy example templates, so please have a look there.
Hi,
I have looked there but I did not find out anything relevant. Maybe I am searching for something else then I should to.
What name should this view has got? Is it partial view or normal one? Does it have a controller?
Hi,
that solution did not work but after creating proper view in shared folder for particular base type all works fine. Thanks for advice!
JC
If I change drop down behavior for instance for images to CreateContentBlock how do I code view to render this content block?
To be more precise suppose image drop to property of type XhtmlString called MainBody.
[UIDescriptorRegistration] public class ImageFileUIDescriptor : UIDescriptor, IEditorDropBehavior
{
public ImageFileUIDescriptor() : base(ContentTypeCssClassNames.Image)
{
DefaultView = CmsViewNames.AllPropertiesView;
EditorDropBehaviour = EditorDropBehavior.CreateContentBlock;
}
public EditorDropBehavior EditorDropBehaviour { get; set; }
}