Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Keith Jackson 183 posts 552 karma points
    Jul 06, 2018 @ 09:27
    Keith Jackson
    0

    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.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jul 06, 2018 @ 12:10
    Dave Woestenborghs
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies