How to show a Classic SharePoint page in dialog mode (without SharePoint’s full-blown chrome)

Classic SharePoint actually has a very handy piece of functionality, using which you can hide most of the SharePoint chrome (like header and navigation), and hence make the page a lot more sleek. This is especially useful for showing the contents in a dialog window – which SharePoint also supports natively through JavaScript! This post describes how.

How to show any (classic) SharePoint page in dialog mode?

Pretty easy – it’s handled via a url parameter! 

Yeah, weirdly enough at least once something’s easy with SharePoint. Just grab the address of whatever page you’re on, and append a url parameter “IsDlg=1” in the end. So, an example!

Todd Klindt has a great SharePoint blog, which he also hosts on SharePoint (everyone loves the built-in CMS after all, right?) and this makes his site a great example here. His post about SharePoint 2013 build numbers, is located at an address like this:

If you want to see it without navigation or header, you can instead go to address like this:

What can you use it for?

Well, just like the parameter name implies, a good example would be to use this version of the page in a dialog window. See below for an example!

SharePoint publishing page in a dialog window with ?IsDlg=1

A full-blown SharePoint Publishing page should look ridiculous in a very small dialog window, but with ?IsDlg=1 it actually looks ok. Still not fabulous (for that, we’ve got Modern SharePoint!), but definitely usable and useful.

The following two tabs change content below.
Antti Koskela is a proud digital native nomadic millenial full stack developer (is that enough funny buzzwords? That's definitely enough funny buzzwords!), who works as a Solutions Architect for Valo Intranet, the product that will make you fall in love with your intranet. Working with the global partner network, he's responsible for the success of Valo deployments happening all around the world. He's been a developer from 2004 (starting with PHP and Java), and he's been bending and twisting SharePoint into different shapes since MOSS. Nowadays he's not only working on SharePoint, but also on .NET projects, Azure, Office 365 and a lot of other stuff. This is his personal professional (professional, but definitely personal) blog.

Leave a Reply

Your email address will not be published. Required fields are marked *