I did some looking around and I was planning on creating the following js function to open a custom page in a dialog:
//Handle the DialogCallback callback
function DialogCallback(dialogResult, returnValue){
}
//Open the Dialog
function OpenDialog(url){
var options = {
url:url + "?IsDlg=1",
width: 700,
height: 700,
dialogReturnValueCallback: DialogCallback
};
SP.UI.ModalDialog.showModalDialog(options);
return false;
}
Is this the right way to do this? I thought I had read somewhere that I could just add the IsDlg query string parameter to make this happen, but this does not appear to work.