Master Page/Branding on SLK Application Pages

Topics: Developer Forum
May 17, 2012 at 10:19 PM
Edited May 17, 2012 at 10:22 PM

There's an old post from 2007 that covers this a little, but I've stumbled upon a more elegant solution.

Note, this applies to SLK 1.5 on SharePoint 2010, I don't think the API supports this on MOSS 2007.

I've documented it on my blog, but here's the relevant info. Per Master Pages on Application Pages, replace the property MasterPageFile property with DynamicMasterPageFile.

On Line 4 of grading.aspx.

Original:
<%@ Page Language="C#" Inherits="Microsoft.SharePointLearningKit.ApplicationPages.Grading" MasterPageFile="~/_layouts/application.master" ValidateRequest="False" %>

Now:

<%@ Page Language="C#" Inherits="Microsoft.SharePointLearningKit.ApplicationPages.Grading" DynamicMasterPageFile="~masterurl/default.master" ValidateRequest="False" %>
Now, I'm seeing my site master page being applied and it looks 10x better. 

FYI, 
I've changed the line in the following files:
Actions.aspx
AssignmentProperties.aspx
CommentedFiles.aspx
DownloadDialog.aspx
FilesUploadPage.aspx
Grading.aspx
Lobby.aspx
SubmittedFiles.aspx
In case this helps someone out.
-Doug