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!
In your model, you have:
[UIHint("CustomProperty3")]
public virtual string CustomProperty3 { get; set; }
Should this be "CustomProperty3" as UIHint instead of "CutomProperty" from EditorDescriptor?
This is what it looks like:
<?xml version="1.0" encoding="utf-8"?>
<module>
<assemblies>
<!-- This adds the Alloy template assembly to the "default module" -->
<add assembly="TemplateTest" />
</assemblies>
<clientResources>
<add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/>
</clientResources>
<dojo>
<!-- Add a mapping from alloy to ~/ClientResources/Scripts to the dojo loader configuration -->
<paths>
<add name="alloy" path="Scripts" />
</paths>
</dojo>
</module>
I'm trying to implement a custom property, much like this one: https://gregwiechec.com/2016/05/textarea-with-statistics/
Template file DojoProperty2.html:
Looks like this if I open the file in the browser:
But in the CMS I only get this:
DojoProperty.js:
DojoPropertyEditorDescriptor.cs:
TeaserBlock.cs: (where the property is being used)
TeaserBlock.cshtml:
What am I doing wrong?
Version: 11.10.1.0