Copied to clipboard

Flag this post as spam?

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


  • Andrei 64 posts 115 karma points
    Jan 26, 2015 @ 17:11
    Andrei
    0

    Grid property editor - dialogService treePicker - how to make it use a startPath instead of startNodeId?

    When you create a property editor and need to insert some items, you use something like:

    dialogService.treePicker({ multiPicker: true, section: "content", treeAlias: "content", startNodeId: 1153, ... }

    But that invites you to hardcode the id in your property editor, which is, of course, a stupid idea, since every time you deploy content the nodes are getting new id's.

    Is there a common sense alternative to startNodeId?

  • Jeroen Breuer 4860 posts 12121 karma points MVP 3x admin c-trib
    Jan 27, 2015 @ 12:11
    Jeroen Breuer
    0

    Hello,

    Unfortunately there is no alternative for this. You just need to set the id's hard coded and changes them if that's required. Maybe it's possible to set them in a configuration file. Here is an example for the media picker start node id in a config file: http://issues.umbraco.org/issue/U4-5704#comment=67-16941

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft