none
Managed metadata Left Navigation default selection based on user country and ordering RRS feed

  • Question

  • Mananged metadata navigation in Sharepoint has to be sorted as per users country and should be on top and must be auto selected as well. This has to be done with minimum post backs. How should this be tackled using Javascript?
    • Edited by wiki_vk Wednesday, March 8, 2017 5:01 AM
    Wednesday, March 8, 2017 5:00 AM

Answers

All replies

  • Hi,

    Where is the contry data from ? Is it from user profile property ?

    Thanks

    Best Regards


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, March 9, 2017 8:36 AM
  • Yes, it comes from user profile.
    Friday, April 7, 2017 12:01 PM
  • You can do this using javascript.

    • Get the user country using JavaScript Ajax call "<<site url>>/_api/sp.userprofiles.peoplemanager/getmyproperties"*
    • Get all your navigation items (first li items)
    • Sort as you required and update the html.

    This you can put it in master page in order to work for every page.

    Thanks,

    Venkat Konjeti

    • Marked as answer by wiki_vk Thursday, February 22, 2018 12:04 PM
    • Unmarked as answer by wiki_vk Sunday, July 8, 2018 3:58 PM
    Saturday, April 8, 2017 5:17 AM
  • Achieved using Jquery. Thanks for the replies.
    • Marked as answer by wiki_vk Sunday, July 8, 2018 3:58 PM
    Thursday, February 22, 2018 12:04 PM