Copied to clipboard

Flag this post as spam?

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


  • karen 186 posts 461 karma points
    May 21, 2014 @ 19:53
    karen
    0

    get nodeid from path?

    Is there a way to get a node id given the path?

    example path = "welcome/somepage.aspx"

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 21, 2014 @ 20:52
    Jan Skovgaard
    0

    Hi Karen

    May I ask what your scenario is? Why do you need to fetch the id from the path?

    Looking forward to hearing from you.

    Cheers, Jan

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    May 21, 2014 @ 21:15
    Chriztian Steinmeier
    101

    Hi Karen,

    uComponents seems to have a GetNodeIdByUrl() extension you can use... are you by any chance using uComponents already?

    /Chriztian

  • karen 186 posts 461 karma points
    May 21, 2014 @ 21:56
    karen
    0

    Chriztian - thanks!  That was exactly what I was looking for but having trouble finding!

     

    Jan - basically I need to be able to generate the nav and know what nav item is active (top level etc) from an ajax call (passing in the path)

Please Sign in or register to post replies

Write your reply to:

Draft