As a teaser… here’s this site displayed in a SharePoint 2010 dialog box:
var options = SP.UI.$create_DialogOptions(); options.url = url; options.height = 300; SP.UI.ModalDialog.showModalDialog(options);
I just needed to modify it so it would work in an HREF of an <A> hyperlink tag. Basically it needed to be in one line and return VOID when called. The following must be typed as all one line!
Now to use it in Quick Launch:
What kind of pages make sense for a dialog box?
It probably does not make much sense to use dialog boxes to display external sites like this one, although it’s better than a Page Viewer Web Part. A better use would be to display any SharePoint page or list/library view and an external report that fits in a popup window.
If you want to display a SharePoint page inside of a dialog box add “?IsDlg=1” to the page’s URL.
Here’s the a normal Shared Documents library page:
Here’s the same page with “?IsDlg=1” added to the URL:
So here’s Shared Documents in a dialog box… notice that you have the ribbon, but not the rest of the master page clutter!
And as a additional bonus, dialog boxes can be called from within dialog boxes. Here’s the Upload Multiple dialog box being used from the example above:
Or open a dialog box from a HyperLink
To use in an <A> hyperlink tag: (again, this is all one line!)
How to: Display a Page as a Modal Dialog Box