Copied to clipboard

Flag this post as spam?

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


  • Robert Stigsson 47 posts 158 karma points
    Aug 25, 2015 @ 13:44
    Robert Stigsson
    0

    Content Picker with a Start Node in Macro

    Hi!

    I'm trying to modify a Content Picker in Umbraco in order to allow for a start node to be set when you are using macros. The start node should either be the current node, or a fixed node. Is there anyway to create this? I've tried to "copy" the Content Picker that already exists but I'm failing, since it isn't allowing me to click the "add" button.

    If anyone have struggled with this before, please send me a hint in how to solve it! :)

  • Lee Cook 5 posts 25 karma points
    Sep 28, 2016 @ 15:50
    Lee Cook
    0

    Hi,

    Did you ever solve this?

    Thanks,

    Lee

  • Adriana Cerqueiro 38 posts 177 karma points
    Mar 02, 2017 @ 15:45
    Adriana Cerqueiro
    0

    Hi guys.

    Robert, I'm really interested in knowing if you manage to solve this.

    Right now I have a Content Picker as a macro parameter, and I would love to set a start node, instead of the whole content tree.

    Thanks!!

  • Andrew McDonald 8 posts 31 karma points
    Jul 28, 2017 @ 15:01
    Andrew McDonald
    0

    You could create a custom data type that inherits a node picker, set that to where you want the root to be

    And then you've got to make it available as a macro parameter type

  • Paul de Quant 403 posts 1520 karma points
    Jul 28, 2017 @ 16:20
    Paul de Quant
    0

    Could you not use the multinode tree picker instead and limit the max number of items to 1 and choose your start node.

  • Adriana Cerqueiro 38 posts 177 karma points
    Aug 21, 2017 @ 11:40
    Adriana Cerqueiro
    0

    Hi, Paul.

    The problem is when you try to use it as a macro parameter. You can select Multinode Tree picker, but you can't configure it in a Macro.

    You can only set the max items to 1 if you are using it as a data type in a doctype.

  • Ivan 165 posts 543 karma points
    Mar 22, 2018 @ 13:51
    Ivan
    0

    Has anyone managed to get it solved?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 23, 2018 @ 09:39
    Dave Woestenborghs
    1

    Hi all,

    Have you tried this package ? https://our.umbraco.org/projects/developer-tools/parameter-editor-generator/

    It allows creating of macro parameters based on a existing datatype. So you can create a MNTP datatype with start node set. And use this to create a macro parameter editor for it.

    Dave

  • Ivan 165 posts 543 karma points
    Mar 29, 2018 @ 09:32
    Ivan
    0

    Hi Dave!

    Thanks, this package is great. It helped us a lot!

    And it would be even greater if it respected versioning, e.g. http://mysite.org/v1/umbraco ;)

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 29, 2018 @ 09:34
    Dave Woestenborghs
    0

    Hi Ivan,

    What do you mean with versioning ? Are you running Umbraco in virtual directory called v1 ?

    Dave

  • Ivan 165 posts 543 karma points
    Mar 29, 2018 @ 12:22
    Ivan
    0

    Dave,

    Yes, we do. Basically we could have URLs like: mysite.com/v1/umbraco mysite.com/v2/umbraco

    As long as new feature comes out, we increment (create new virtual directory) app version.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 29, 2018 @ 12:24
    Dave Woestenborghs
    0

    Hi Ivan,

    I think the package does not support that. But is easy to fix.

    If you report here : https://github.com/skttl/ParameterEditorGenerator/issues

    I will instruct the package creator on how to fix or do a PR.

    dave

  • Ivan 165 posts 543 karma points
    Mar 29, 2018 @ 18:46
    Ivan
    0

    Thanks, Dave!

    I have created the issue: https://github.com/skttl/ParameterEditorGenerator/issues/1

Please Sign in or register to post replies

Write your reply to:

Draft