How to get context node id in Custom Property Editor
I need to extend multinode picker by providing startNodeId dynamically based on a current node when a user creates a content.
For example: If an user creates a content inside "Section 1 news / News Folder", a multinode picker will have a startNodeId of "Section 1 News/news category list".
Same goes if an user creates a content inside "Section 2 news/News Folder", the user can select only a news category from "/Section 2 news/News category list/" e.g. "b1,b2,b3".
It is very easy to extend treepicker using " : PropertyEditor" so I donnot need to rewrite angular stuff for the view.
Is there any way to change id= "-1" (line 45) dynamically?
How to get context node id in Custom Property Editor
I need to extend multinode picker by providing startNodeId dynamically based on a current node when a user creates a content.
For example: If an user creates a content inside "Section 1 news / News Folder", a multinode picker will have a startNodeId of "Section 1 News/news category list". Same goes if an user creates a content inside "Section 2 news/News Folder", the user can select only a news category from "/Section 2 news/News category list/" e.g. "b1,b2,b3".
It is very easy to extend treepicker using " : PropertyEditor" so I donnot need to rewrite angular stuff for the view.
Is there any way to change id= "-1" (line 45) dynamically?
Yep. you can.
Have a look at this class from the Hybrid Framework. Jeroen uses this to set the start node of the media picker.
Dave
thanks, Dave. I have looked into the source code from "Hybrid Framework". It was easy. :)
is working on a reply...