.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

how to provision Custom page layout and master page for subsite

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :SharePoint
 

 

I want to display the following page when  subsite of type  Custom site defination is created

<

 

Module Name="Brand" Url="


View Complete Post


More Related Resource Links

Apply custom.master to "Site Settings" page?

  

I'm using a custom.master page, which is applied to almost all pages available to READ users.

However, I'd like to apply it to the Search, Site Settings, and View All Site Content pages.

I'm not sure where this would be applied.

Guidance much appreciated. Thanks!


Sharepoint 2007 - Wiki site - New Pages Not Inheriting Custom Master Page

  

I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not showing the miniconsole.

When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.

How can I get the new pages to inherit my master page when they are created?

Shark


Unable to create columns in document library after applying custom master page to site

  
Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?

How to Merge Master Page calendar and Subsite Calendar.?

  
Hi All, I have Created One Masterpage Calendar and also i have created 5 subsite calendar. how to merge 5 subsite calendar into main site calendar? if 4th site owner announcing meeting in subsite 4 calendar means i need automaticaly it will be populating all those meeting information in main site calendar. i don't need code and at all please give me a out of the box solution. Thanks Sabapathy  

Page Layout and Master Page

  
I am creating a portal for the company, I am having few issues related to the page laout, I hope someone would help me provide some clues 1. I have some sites with no left menu but it needs 3 column lay out 2. some sub sites have menu on the left but it needs 3 columns + the menu I created custom master from a v4.master, created page layouts based on the above structure. I am not able tailor them as per the needs Can some one point me in the right direction Thank you.. Neel

How To Use a Specific Sites' Master Page for my custom asp.net application

  
I have a custom application that I migrated to sharepoint (compiling into single DLL and creating a fodler for it in the layouts folder in 12 hive) Currently, I am using ~/_layouts/application.master as my masterpage for the custom application. However, i would like to use a certain site's master page for my application versus the default one. For instance, I would like to use the master page from this sub site www.maindomain/sites/subsite/ Thanks for your help.

Retracting feature which deployed custom master page delete default.master

  
Hi, I am not sure if solution to this issue is already posted? I have my feature which copy my custom.master which is copy of default.master from hive to master page gallery of web. The problem is that everything works fine with feature activate and deactivate but when I retract the solution from the server. All pages except site settings page stop working saying "file not found". I redeploy the solution, it starts working again. Looks like the retract is deleting default.master as well? I have this issue in 2010 as well. Any help will be appreciated. Thanks, Kashish

Master page in IE does'nt have the same layout as Chrome.

  
Hi all I'm having some dificulty in having the layout in IE same as in Chrome. I'm using a table, and in the Cell that has the menu it displays heigher in IE, but It is just perfect in Chrome. also the Navigation bar is more to the right in Chrome than in IE. Thank you This is the CSS used . html,body{ margin:0; padding:0; height:100%; border:none; background-color:Red; } /*--------------------------------Table-----------------------------------------------*/ .Table {position:absolute; margin: 1% 2% 3% 2%; width: 93%; height: 90%; background-color: #C0C0C0; z-index: 1; left: 22px; top: 22px;} /*------------------------------End Table----------------------------------------------*/ /*-------------------------------Logo-----------------------------------------------*/ #td1-logo {width:250em; height:4em; margin-left:2em;} /*-----------------------------End Logo---------------------------------------------*/ /*-------------------------------menu ----------------------------------------------------*/ #td1-menu {background-color:Lime; width:30em; height:20%;} ul { width:32em;margin:15px 5em 0 0em;height:4em;border-style:groove; border-color:Red;} ul li{float:left;width:8em;

Master Page and table layout

  
Hi, i am in the process to learn create master page using HTML table layout.I find out many resources online that use table to design their master page layout.I have 1 thing that i do not undestand:all of them using heigh= n pixel to control their footer, header, content  and navigation menu.My concern is that by doing so, the master page is fixed to only particular resolution only.In future there might be higher resolution available, the master page design need to be changed from time to time which is considered not so good programmer.OR in future, the when site need to have something like "Best view in resolution 1024 x 768", somethign like that...Is there any other way not to do so? Are they doing their master page correctly?

Retract custom master page feature and all site pages stop working

  
There is a requirement to apply custom branding on personal sites in a SP 2010 project. For this I have created a feature which uploads and applies the custom master page on creation of any new personal sites.   I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on a team site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master.   Any help on this is appreciated. Regards, Neha

Retract custom master page feature and all site pages stop working

  
I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on the root site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master. Any help on this is appreciated. Regards, Neha    

SP 2007 - Master.page layout

  
I have been searching for a solution to a clients request.  I need master page with: 1. 100% width header (center aligned)   2. 960px width main content area (center aligned) 3. 100% width footer (center aligned)   Can I add a <div> around the main content  like so:<div id="wrapper">CONTENT</div> #wrapper { margin:auto; width: 960px; }  

Referencing a ghosted master page in unghosted page layout

  
Hello All, I am developing a publishing portal in MOSS 2007 environment. I am employing wspbuilder to deploy my master pages, page layouts and site contents in the publishing site. I would like to know whether referencing a ghosted master page(residing in the 12 hive) in an unghosted page layout(residing in the content database) would be efficient. I read in some articles that fetching the pages from file system increases the throughput when compared to that of hitting the content database. Is it advisory to do it this way? Any insights on this would be of great useRegards, Raghuraman.V CALAMITY IS THE TOUCHSTONE OF A BRAVE MIND

Forms Based Authentication - problem with custom master page and login page

  

Hi,

I have successfully enabled and set up FBA (Forms Based Authentication) on my SharePoint 2010 Foundation server. The thing is that I need to customize the look and feel of the login page. I have successfully customized the page (and master page) to look the way I want, however, when I try to log in, I get the following error/message on the page:
"Forms Based Authentication on classic Web applications has been deprecated".

What I've done:
Made copies of /_layouts/simple.master and /_layouts/login.aspx and renamed the copies. The markup in the master page is MUCH simpler than the original, but I've kept all the ContentPlaceholders that I don't use (most of them) in a hidden <asp:Panel at the bottom of the page.

I've changed the web.config file:
<authentication mode="Forms">
      <forms loginUrl="/_layouts/loginCustom.aspx" />
</authentication>

So, I'm not getting any errors on the page until I try to log in. When I use the default settings (login.aspx and simple.master) it works just fine (but damn that page looks ugly!).

Does anyone know what I might be missing?

Update: I believe the reason it doesn't work is because my custom login aspx is not part of the Claims Based Web Application (because it's sitting

Setting custom master-page.

  

How can I set a custom master-page to a site or site-collection? There should be a link in site actions>site settings>look and feel called "master page" but Im not seeing it. Where is that exactly?

-J


Error: There are no page layout files available in the master page library of the top-level site.

  
I exported one of the subsite using stsadm and imported into a new site collection, I could access the new site collection but whenever I try to create a new page in my new site collection I get the following error.

There are no page layout files available in the master page library of the top-level site. Add one or more page layouts to this library before you create a page or set page properties.

 
Please help. Thanks.

Set custom publishing page layout custom field programatically

  

I have a custom publishing page content type, based on the Publishing Article Page content type. On this content type, I have a custom field named "PageContentCategory". In my code to create new pages, I tried this:

 

PublishingPage newPublishingPage = this.currentPublishingWeb.GetPublishingPages().Add(pageName, newPageSelectedLayout);

if (pageContent.IsEmpty())
{
 pageContent = Properties.Resources.EAWorldArticleHandler_CreateNewArticlePage_DefaultPageContent;
}

newPublishingPage.ListItem[new Guid("{93496B35-7EC3-4132-B0D0-3BDC5606F5EF}")] = pageContentCategory;
newPublishingPage.ListItem[FieldId.PublishingPageContent] = pageContent;
newPublishingPage.Title = pageTitle;
newPublishingPage.Update();

 

I have also tried to set it by the field name:

 

PublishingPage newPublishingPage = this.currentPublishingWeb.GetPublishingPages().Add(pageName, newPageSelectedLayout);


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend