I have been trying to get the selected name of a radio button list as the template display for nested content. To this end I have tried using the 'ncNodeName' filter...
{{ myRadioListAlias | ncNodeName }}
This only seems to work with content pickers as it requires an actual node.
This being the case I am now looking to put together a custom Angular filter to achieve the same thing for a radio button list. However, I can't find any documentation out there on how to create a custom filter and how best to plug it into Umbraco.
If anyone can point me at something to help me through this that would be great! I've built a couple of Angular back office tabs before and I know my way around modern JavaScript.
Creating a Custom Angular Filter
I have been trying to get the selected name of a radio button list as the template display for nested content. To this end I have tried using the 'ncNodeName' filter...
{{ myRadioListAlias | ncNodeName }}
This only seems to work with content pickers as it requires an actual node.
This being the case I am now looking to put together a custom Angular filter to achieve the same thing for a radio button list. However, I can't find any documentation out there on how to create a custom filter and how best to plug it into Umbraco.
If anyone can point me at something to help me through this that would be great! I've built a couple of Angular back office tabs before and I know my way around modern JavaScript.
Hi Keith,
A good starting point would be the source code of the ncNodename filter :
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/common/filters/nestedcontent.filter.js
I suppose you know how to register a javascript file in the backend. But for reference you can use this : https://our.umbraco.com/documentation/Extending/Property-Editors/package-manifest
Dave
is working on a reply...