November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi!
How does your EditorDescriptor look like? And the configuration in module.config?
Editor descriptor:
[EditorDescriptorRegistration(TargetType = typeof(string), UIHint = UIHint)] public class PushFormEditorDescriptor : EditorDescriptor { public const string UIHint = "PushFormEditorDescriptor"; public PushFormEditorDescriptor() { ClientEditingClass = "push/Editor"; } }
Config:
<dojoModules>
<add name="tags" path="Tags" />
<add name="vimeo" path="Scripts/widgets" />
<add name="push" path="Push" />
</dojoModules>
Descriptor usage:
[EditorDescriptor(EditorDescriptorType = typeof(PushFormEditorDescriptor))] [Display(Name = "Pushformulär", Description = "", Order = 5, GroupName = "Information")] public virtual string PushForm { get; set; }
Well I solved it by myself :) I missed the following override in the EditorDescriptor
public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata, IEnumerable<Attribute> attributes) { ClientEditingClass = "push/Editor"; base.ModifyMetadata(metadata, attributes); }
Hello fellow developers!
Im currently trying to develop a simple dojo widget for EPiServer CMS v 9.4 but I have run in to some troubles.
The widget should contain a simple form, a button and a listing, but in the example below I have removed everything to just include the basic script and template, a minimal version that still does not work as it should
Script:
Template:
Solution based on example here: https://dojotoolkit.org/documentation/tutorials/1.10/templated/
The issue is that when I try to load a page in Forms Edit Mode where this is used, nothing happens. It simply shows the loading bar on the button, but I get no console errors, and the forms view does not display.
Anyone who have seen this strange behavior before and have a clue as to what causes it?
Best regards
William