Home » Sharepoint 2010RSS

Deployed Custom Master Page not visible in Web UI

I'm deploying custom master page and a custom page layout as described in the blog below.  Creating a module, including the page layout or master page and then creating a feature deploying the module.

http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=71

Once deployed, The Master of Layout are visible in SharePoint Designer but not in the Masterpage gallery.  When I try to set as default master page in Designer, I receive the following message. 

The User interface version of the master page cannot be determined.  Do you want to continue?

As I understand I don't have the right UI version for my two files.  In fact I understand that they are undefined.  How can I define them to 3 or 4?

 

 

7 Answers Found

 

Answer 1

Where this master page is deployed ?

Is it ghosted in library or is it under _LAYOUTS folder ?

If you have publishing feature turned on, have you approved the Master Page in the master page library.

I believe it is missing a directive definition in the Master Page ?

Is it SP 2010 portal ? Are you trying to re-use a master page from SP 2007 ? Are you building your master page on V4.master ?

Please provide more details

 

 

 

Answer 2

By default your custom master page being deployed by a feature is not being published.  You probably need to check-in/publish the file before you can assign it as the actual MP.  There's a blog post out there about doing this automagically with your feature... I'm trying to find it.
 

Answer 3

The master page is deployed in the "14" folder.

It is ghosted

published feature is turned on, however, when I look at the Version History with SharePoint Designer, the only version listed is 1.0.  I cannot re-approve it.

I'm pretty shure too I am missing some directive.

Yes it's a 2010 Publishing Portal.  No 2007 page.  This is a new site with new feature/code/masterpage etc.  I tried copying the exact same code of v4.master and it does the same.

 

Answer 4

The master page as well as the layout I am deploying by a feature appear with version 1.0 in SPDesigner.

I noticed with SPDesigner that while other layouts and master are associated with Publishing Master Page or Master Page in the Content Type column, mine have nothing.  The column is blank.

 

Answer 5

make sure the Type property of your File tag (inside the module) is set to GhostableInLibrary, and not Ghostable.
 

Answer 6

Excellent.  That solved my problem.  And they appear approved without any intervention as well.

Thanks

 

Answer 7

More than welcome.

I had this issue more than once.

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Tech Videos   |   Follow us on Twitter