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?
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
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?
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
is working on a reply...