Copied to clipboard

Flag this post as spam?

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


  • jivan thapa 194 posts 681 karma points
    Oct 23, 2014 @ 11:56
    jivan thapa
    0

    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?

    enter image description here

    enter image description here

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 24, 2014 @ 09:29
    Dave Woestenborghs
    101

    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

  • jivan thapa 194 posts 681 karma points
    Oct 26, 2014 @ 18:13
    jivan thapa
    0

    thanks, Dave. I have looked into the source code from "Hybrid Framework". It was easy. :)

Please Sign in or register to post replies

Write your reply to:

Draft