Copied to clipboard

Flag this post as spam?

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


  • Niels Henriksen 74 posts 277 karma points
    Feb 17, 2021 @ 08:53
    Niels Henriksen
    0

    Implement ContentPicker in backend?

    I am working on extending Umbraco for a customer with his own section and I want to use the buildin Umbraco.ContentPicker in Angular

    How is this possible? Are there a tutorial on how to add more modules to the backend?

  • Markus Johansson 1945 posts 5898 karma points MVP 2x c-trib
    Feb 17, 2021 @ 10:00
    Markus Johansson
    100

    Hi!

    It's totally possible, your approach would be a little different depending on your exact needs.

    One can render any property editor in a custom view using the "umb-property-editor"-directive but in your case if sounds more like you need the "editor view" that shows to the right and not the whole property editor with support for picking multiple nodes etc.

    Have a look at the "editorService" in Umbraco https://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.services.editorService this provides some common types of "editors" for picking content, media, members and more.

    A example of usage can be find in the nice Redirect-package by Skybrud:

    https://github.com/skybrud/Skybrud.Umbraco.Redirects/blob/v2/latest/src/Skybrud.Umbraco.Redirects/App_Plugins/Skybrud.Umbraco.Redirects/Scripts/Controllers/Editors/Destination.js

  • Niels Henriksen 74 posts 277 karma points
    Feb 17, 2021 @ 10:01
    Niels Henriksen
    0

    Thank you very much.

  • 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