Copied to clipboard

Flag this post as spam?

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


  • Tobias Lopez 64 posts 210 karma points
    Oct 10, 2012 @ 16:16
    Tobias Lopez
    0

    MNTP: Set the Start node ID dynamically

    Hey,

    Is it possible to set the Start Node dynamically?

    I want to use the current node as Start Node and choose from the children from it.

    any idea?

    thanks :)

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Oct 10, 2012 @ 16:37
    Jeroen Breuer
    0

    Yes you can use the Xpath expersion for that:

    Jeroen

  • Tobias Lopez 64 posts 210 karma points
    Oct 10, 2012 @ 16:47
    Tobias Lopez
    0

    if i check xpath type from current and expression "."

    is that also possible?

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Oct 10, 2012 @ 16:48
    Jeroen Breuer
    0

    I think you need to use $ancestorOrSelf, but if you only enter that the current node will become the start node.

    Jeroen

  • Tobias Lopez 64 posts 210 karma points
    Oct 10, 2012 @ 16:50
    Tobias Lopez
    101

    got this and it works

     

     

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Oct 10, 2012 @ 16:52
    Jeroen Breuer
    0

    Nice to know that you can also use "." :-).

    Jeroen

  • Stephen 767 posts 2273 karma points c-trib
    Oct 11, 2012 @ 08:15
    Stephen
    0

    For what it's worth we're running a patched version of MNTP that accepts "$codegen" in the XPath expression, as in "$codegen/product [whatever='1']"... and invokes a c# function / triggers an event so you can compute a completely fully dynamic start node ID based upon the node & property currently being edited. Any interest in adding to core?

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Oct 11, 2012 @ 09:47
    Jeroen Breuer
    0

    Sounds like a nice feature! Do you have an example of the C# function that get's triggered? 

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies