Sharepoint Designer 2010 - imported master page ends up showing under page layouts
-
16-10-2019 - |
Question
When I import a master page in Sharepoint Designer 2010, using the 'Import Files' button (while clicked into the "Master Pages" section, the file is imported, but not to Master pages. It goes instead to "Page layouts" section.
Why is this and what does it mean in terms of managing the site?
Hope someone can help.
NOTE - I have since discovered that by default, all files imported into the master page gallery via Sharepoint Designer are assigned the page content layout type, which means that they will show up in the Page Layouts directory rather than Master Page directory. Best practice for this and a number of other reasons it NOT to import master pages using SPD, but to use the SP UI.
Solution
Another method to avoid this is to go to the MasterPage and Page Layouts gallery in the web UI and upload your files. Tihs way you explicitly set the content type to Master Page and it shouldn't show up as a PageLayout.
OTHER TIPS
From my experience its better to use drag and drop method to upload your masterpages, layouts, css and other files supporting the site.
I also noticed that I needed to upload one page at a time, if I uploaded multiple, it gave me a "failed" message