Copied to clipboard

Flag this post as spam?

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

  • Andrei 68 posts 130 karma points
    Jan 26, 2015 @ 17:11

    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 4866 posts 12165 karma points MVP 3x admin c-trib
    Jan 27, 2015 @ 12:11
    Jeroen Breuer


    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:


Please Sign in or register to post replies

Write your reply to: