none
Open page in modal dialog from top menu

    Question

  • Hi,

    how to open a page in modal dialog from top menu?

    The top menu is managed navigation defined from term set.


    jik

    Saturday, December 3, 2016 8:23 AM

Answers

  • Hi JIK,

    Yes,  OOTB menu has no place to make a hyperlink to open in a modal dialogue. We need to use Jquery UI dialogue method to make a hyperlink open in a dialogue.

    Here is a code demo for your reference:

    Open JQuery UI Dialog box on Hyperlink

    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

    • Marked as answer by JIK12 Monday, December 19, 2016 7:59 AM
    Monday, December 12, 2016 8:49 AM

All replies

  • Hi JIK12,

    We can create a custom JS file with OpenDialogue function and then add onclick event to hyperlink to open page in a modal dialog.

    Here is a code demo for your reference:

    Open Pages and Forms in Modal Dialog For SharePoint 2013

    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

    Tuesday, December 6, 2016 7:21 AM
  • Thanks,

    but I want to open the page from the termdriven main menu - as far as I can see its not possible to add javascript-calls to the link field in the term-page.

    Anyone?


    jik

    Friday, December 9, 2016 1:00 PM
  • Hi JIK,

    Yes,  OOTB menu has no place to make a hyperlink to open in a modal dialogue. We need to use Jquery UI dialogue method to make a hyperlink open in a dialogue.

    Here is a code demo for your reference:

    Open JQuery UI Dialog box on Hyperlink

    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

    • Marked as answer by JIK12 Monday, December 19, 2016 7:59 AM
    Monday, December 12, 2016 8:49 AM