Copied to clipboard

Flag this post as spam?

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


  • Balesh 28 posts 49 karma points
    Mar 29, 2012 @ 14:31
    Balesh
    0

    How to get the current node

    Hi All,

     

    Is it possible to get the current node inside Property Editor. In other words, can we get the current content node, in which property Editor is being used.

     

    Thanks

    Balesh Kumar

     

  • Rodion Novoselov 694 posts 859 karma points
    Mar 29, 2012 @ 14:50
    Rodion Novoselov
    0

    Hi.

    var currentNodeId = int.Parse(Request.QueryString["id"]);

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 29, 2012 @ 14:53
    Tom Fulton
    0

    Hi Balesh,

    Are you talking about v5?  If so I don't have the exact answer, but it should be pretty easy to figure out if you check the source code of Warren's Child Content Property Editor.  He retrieves the current node and then loops it's children. 

    -Tom

  • Balesh 28 posts 49 karma points
    Mar 29, 2012 @ 15:07
    Balesh
    0

    Thanks for the prompt reply. :)

    Let me explain the scenerio. We have written a content picker ( that can pick multiple values). It fetches all the nodes of a perticulare document type and render it in drop down. It worked well, but when we implemented multilingual support, by copying the content, It started showing two copies of same values. I guess, if we can get the current node and get its lanugage inside property editor, then we can compare this language as well.

    Please correct me if this is not feasible. We are using V5. 

    Balesh Kumar

Please Sign in or register to post replies

Write your reply to:

Draft