Creating Master page for publishing site
Hi,
I am trying to create a master page for publishing site. I have downloaded the "StarterBranding - V1.3" from codeplex, and used the "Starter Publishing". Currently it is not showing logo, search box, top navigation, breadcrumbs.
I have an existing master page which has lot of tags, and I am not sure what they represent. The below code is after the script manager tag in the body section:
<SharePoint:AjaxDelta id="DeltaDelegateControls" runat="server">
<SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="GlobalNavigation" />
<SharePoint:DelegateControl ID="DelegateControl3" ControlId="GlobalSiteLink3" Scope="Farm" runat="server" Visible="false" />
</SharePoint:AjaxDelta>
<div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOnAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div id="TurnOffAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOffAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div class="s4-notdlg s4-skipribbonshortcut noindex">
<a id="A1" href="javascript:;" onclick="document.getElementById('startNavigation').focus();" class="ms-accessible ms-acc-button" accesskey="<%$Resources:wss,skipribbon_accesskey%>" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="<%$Resources:wss,skipRibbonCommandsLink%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div class="s4-notdlg noindex">
<a id="A2" href="javascript:;" onclick="document.getElementById('mainContent').focus();" class="ms-accessible ms-acc-button" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" text="<%$Resources:wss,mainContentLink%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div id="TurnOffAnimation" style="display:none;" class="s4-notdlg noindex">
<a id="linkTurnOffAnimation" href="#" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" text="<%$Resources:wss,master_disableanimation%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div id="TurnOnAnimation" style="display:none;" class="s4-notdlg noindex">
<a id="linkTurnOnAnimation" href="#" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral6" runat="server" text="<%$Resources:wss,master_enableanimation%>" EncodeMethod="HtmlEncode"/></a>
</div>
<a id="HiddenAnchor" href="javascript:;" style="display:none;"></a>
<div id="suiteBar" class="ms-dialogHidden noindex">
<div id="suiteBarLeft">
<div class="ms-table ms-fullWidth">
<div class="ms-tableRow">
<div class="ms-tableCell ms-verticalAlignMiddle">
<SharePoint:DelegateControl id="ID_SuiteBarBrandingDelegate" ControlId="SuiteBarBrandingDelegate" runat="server"/>
</div>
<SharePoint:AjaxDelta runat="server" id="DeltaSuiteLinks" BlockElement="true" CssClass="ms-core-deltaSuiteLinks">
<div id="suiteLinksBox">
<SharePoint:DelegateControl id="ID_SuiteLinksDelegate" ControlId="SuiteLinksDelegate" runat="server" />
</div>
</SharePoint:AjaxDelta>
</div>
</div>
</div>
<div id="suiteBarRight">
<SharePoint:AjaxDelta runat="server" id="DeltaSuiteBarRight" CssClass="ms-core-deltaSuiteBarRight" BlockElement="true">
<div id="welcomeMenuBox">
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false" />
</div>
Are the above tags required in Master page? what is the use of it? I have more tags and will add after knowing the use of it in future threads.
Thanks
Hi,
According to your description, my understanding is that you want to know about the each tags useful in master page.
In SharePoint 2013 master page, there are some common tags like body tag, head tag and meta tag and some style CSS div tags. For the useful of these tags, I suggest you can refer the articles below:
Understanding HTML master pages in SharePoint 2013
In your custom master page, it will have some custom css tags depend on the display style but it is no required for master pages, if you want to know about what tags is required in master page, you can compare the custom master page with the OOTB master
page.
More information:
Create a minimal master page in SharePoint 2013
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Similar Messages
-
How to set custom master page for social/sites.aspx in sharepoint 2013
How to set custom master page for social/sites.aspx in sharepoint 2013.?
File path is
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES\SocialDataStore\SocialDataStoreList\sites.aspx
Thanks in advanceHi,
You could open the sites.aspx in Notepad or SharePoint designer, and set the master page to your own master page directly via editing:
<%@ Page language="C#" MasterPageFile="~masterurl/custom.master" Inherits="Microsoft.SharePoint.Portal.WebControls.FollowedContentWebPartPage,Microsoft.SharePoint.Portal,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"
%>
Regards,
Rebecca Tu
TechNet Community Support -
Calendar view on page for Published site.
I have a subsite, and I create a calendar for meetings, on a new page I added a web part to show the calendar (calendar view). when I logged on the site, each event has their one link to details, (disform.aspx?id= something) but as soon I publish the
page, and go and use the browser as anonymous (not logged), I can see the calendar but I don't have links to see the details of the event.
I know this work because on the same site I have another subsite with another calendar and it is working just fine, i tried and I know I did it in another site, I just don't have links in this one.
the collapse or add links show up and work fine, it is just the link to the events detail. Someone can help me?I did a test in my environment with anonymous access in the publish site and the event is in the calendar.
For a better troubleshooting, I suggest you do as followings:
1. Check the anonymous access in the site settings-> site permission->Anonymous Access->Entire Web Access.
2. Check if you have deactived the feature “limited-access user permission lock down mode” feature in site collection feature.
3. If the issue still exists, I suggest you recreate a calendar to test whether it works.
Best Regards,
Zhengyu Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
Can I send a book created with page for publishing?
I want to create a book of family stories and end up with a hardcover (similar to what you can do with iphoto: however inserting text is very limited in iphoto)
This book would be heavy on text ie., stories and augmented with photos.
Thanks,
GaryYou need to print to or export to pdf, with some qualifications, pdfs from Pages may have issues with transparency and resolution.
I don't know of any printers who use Pages as a core application, although in most cases it is the best method of output for Pages documents.
Ask around for Printers who use Macs and who may have Pages installed. It is not expensive, so even if they don't have it, you could offer to pay them for the DL and install, as a practical measure. It would only be a relatively small percentage extra on a reasonal print run.
Peter -
How to set master page for Wildcard inclusion Managed path in Sharepoint 2013
I am using sharepoint 2013. I created mysite in root level for newsfeed. Also i included wildcard inclusion managed path named as
my. If i am clicking newsfeed the page url is http://webapplication:port/
if i am clicking sites the page url is http://webapplication:port/my/CURRENTUSERNAME/Social/Sites.aspx#IsEditing_WPQ4=1.
I can apply master page for newsfeed site using sharepoint designer. But i cant apply for
my path.
If am opening http://webapplication:port/my/vijay in designer i can change the master page. But my requirement is to apply master page for http://webapplication:port/my
for all users have same master page.
How to solve this . Thanks in advance.You need to update the mysitehost masterpage. all master pages are created as mysitehost template.
Here is how you do it.
Create a site collection with template as mysitehost
Modify the mysitehost masterpage
Once it is done, update the mysitehost in user profile service application
If this helped you resolve your issue, please mark it Answered -
Using Adobe Muse to create master pages
Hi,
Is it possible to use Adobe Muse to create master pages for Sharepoint 2013?
The Muse product creates the Javascript, css and html files, with the images etc.
The Muse product looks ideal to create the master pages with no coding required.
NickFor SharePoint 2013, yes you could absolutely use this tool to create your HTML (this post is in the 2010 forum, so just making sure). In SP 2013 you can use the new Design Manager to upload HTML which then gets converted to a .NET Master Page.
So long as Muse turns out valid HTML, you should not have an issue.
Brandon Atkinson
Blog: http://brandonatkinson.blogspot.com -
I created a Muse site long ago, and wanted to fix my SEO easily overall by better analytics among other things.
Perhaps I am doing this the wrong way but I was thinking I could create a master page that I could just drop the html I needed into, and thus not fuss too much with my other pages. The problem is I already have master pages that my site is based on (before you could do this), and it would be much easier to have those master pages stem from one source (a Master master page?).
Everytime I try to do this it changes my current master and final pages. Anyway I can create and invisible master so this doesn't happen?
What should I do instead?
THANK YOU.
WilliamThanks,
Your intructions were my plan untill I realized that in doing so, it changed the backgrounds etc of my current masterpages. I realize that this is a lack of planning due to my very rusty design principles, and something I wouldn't have done in my day job if the features had been in place. (so thank you for the new features!)
While I realize I could probably fix this by recreating the site with a uniform underlying Primary Master Page feeding into my Secondary Master Pages, I was trying to create a master page that in effect wouldn't change a thing in the other subservient masterpages (thus allowing me freedom to create groups of pages with common analytics or any other types of code).
Simply when I take your suggestion, things change... can I do this without making things change?
Not sure if this makes sense. I am trying to avoid coding or a overhaul b/c of time constraints.
William -
Creating a new Master Page for new SharePoint 365 Environment
Hello,
If you create a new Master Page for your 365 site collection should all the Promoted Links, List Headings, etc. (standard items that are in the OOO SP Master Page) still remain the 'Blue SP Color' or are you able to change these items in the Master
Page as well? If someone needs additional information on my question please let me know.
Thank you in advance!
JoanieHi Joanie,
use those article to build your master page for office 365
http://rstagg.com/2013/04/17/office-365-branding-creating-a-custom-masterpage-for-your-office-365-public-facing-website/
http://msdn.microsoft.com/en-us/library/jj822370.aspx
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem -
Apply custom master page for a new sub site in programming
Hi;
How Apply a custom master page for a new subsite ?
My code is as follows but it not working : the master page is not applied ?
SPWeb newSite = web.Webs.Add(name, name, name, Convert.ToUInt16(1036), "{815BF557-AFE0-42B4-92A1-A8A56011EDBF}#LaPoste.DTC.ModeleSite", false, false);
newSite.AllProperties["__InheritsCustomMasterUrl"] = "False";
newSite.CustomMasterUrl = "/_catalogs/masterpage/iDtc/iDtcGeneric.master";
newSite.AllowUnsafeUpdates = true;
newSite.Update();
Regardstry this:
foreach (SPWeb site in siteCollection.AllWebs) {
if (site.Title.ToString() == "Reporting Portal")
site.MasterUrl = WebAppRelativePath + "_catalogs/masterpage/Branding101.master";
//site.CustomMasterUrl = WebAppRelativePath + "_catalogs/masterpage/Branding101.master";
site.AlternateCssUrl = WebAppRelativePath + "Style%20Library/Branding101/Styles.css";
site.SiteLogoUrl = WebAppRelativePath + "Style%20Library/Branding101/Images/Logo.gif";
site.UIVersion = 4;
site.UIVersionConfigurationEnabled = false;
site.Update(); -
How can i create member login page for my site???
I want to create login page for members on my site.
Hi,
Please refer to the following link Re: secure account login
Regards,
Aish -
How to add left navigation to Custom Master page for Office 365
Hi,
I have created a master page using html, it looks good,
But I could not see the left navigation, which I would like to have.
below is my html page which converted to a master page:
<?xml version="1.0" encoding="utf-8"?><!--SPG:
This HTML file has been associated with a SharePoint Master Page (.master file) carrying the same name. While the files remain associated, you will not be allowed to edit the .master file, and any rename, move, or deletion operations will be reciprocated.
-->
<!DOCTYPE html[]>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=10" >
<!--CS: Start Page Head Contents Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"%>-->
<!--SPM:<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"%>-->
<!--SID:00 -->
<meta name="GENERATOR" content="Microsoft SharePoint" >
<meta http-equiv="Content-type" content="text/html; charset=utf-8" >
<meta http-equiv="Expires" content="0" >
<!--MS:<SharePoint:RobotsMetaTag runat="server">-->
<!--ME:</SharePoint:RobotsMetaTag>-->
<!--MS:<SharePoint:PageTitle runat="server">-->
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server">-->
<!--MS:<SharePoint:ProjectProperty Property="Title" runat="server">-->
<!--ME:</SharePoint:ProjectProperty>-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--ME:</SharePoint:PageTitle>-->
<!--MS:<SharePoint:StartScript runat="server">-->
<!--ME:</SharePoint:StartScript>-->
<!--MS:<SharePoint:CssLink runat="server" Version="15">-->
<!--ME:</SharePoint:CssLink>-->
<!--MS:<SharePoint:CacheManifestLink runat="server">-->
<!--ME:</SharePoint:CacheManifestLink>-->
<!--MS:<SharePoint:PageRenderMode runat="server" RenderModeType="Standard">-->
<!--ME:</SharePoint:PageRenderMode>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="core.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="menu.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="callout.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="sharing.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="suitelinks.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:CustomJSUrl runat="server">-->
<!--ME:</SharePoint:CustomJSUrl>-->
<!--MS:<SharePoint:SoapDiscoveryLink runat="server">-->
<!--ME:</SharePoint:SoapDiscoveryLink>-->
<!--MS:<SharePoint:AjaxDelta id="DeltaPlaceHolderAdditionalPageHead" Container="false" runat="server">-->
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server">-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--MS:<SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true">-->
<!--ME:</SharePoint:DelegateControl>-->
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderBodyAreaClass" runat="server">-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--ME:</SharePoint:AjaxDelta>-->
<!--MS:<SharePoint:CssRegistration Name="Themable/corev15.css" runat="server">-->
<!--ME:</SharePoint:CssRegistration>-->
<!--MS:<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">-->
<!--MS:<WebPartPages:SPWebPartManager runat="server">-->
<!--ME:</WebPartPages:SPWebPartManager>-->
<!--ME:</SharePoint:AjaxDelta>-->
<!--CE: End Page Head Contents Snippet-->
<meta name="viewport" content="width=device-width" >
<!--DC:The Buzz - Team Site-->
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:HtmlDesignFromMaster msdt:dt="string"></mso:HtmlDesignFromMaster>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">https://rbcom.sharepoint.com/sites/cccdev1/_catalogs/masterpage/Master Page Gallery/team-site-test.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
<mso:ContentTypeId msdt:dt="string">0x0101000F1C8B9E0EB4BE489F09807B2C53288F0054AD6EF48B9F7B45A142F8173F171BD10003D357F861E29844953D5CAA1D4D8A3A006E1FBF9840A05D48B1698A21E9B5B94F</mso:ContentTypeId>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body id="test-100">
<!--CS: Start Ribbon Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"%>-->
<!--SPM:<%@Register Tagprefix="wssucw" TagName="Welcome" Src="~/_controltemplates/15/Welcome.ascx"%>-->
<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" HideFromSearchCrawler="true" EmitDiv="true">-->
<div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOnAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return
false;">
<!--MS:<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnonaccessibility%>"
EncodeMethod="HtmlEncode">-->
<!--ME:</SharePoint:EncodedLiteral>-->
</a>
</div>
<div id="TurnOffAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOffAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return
false;">
<!--MS:<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnoffaccessibility%>"
EncodeMethod="HtmlEncode">-->
<!--ME:</SharePoint:EncodedLiteral>-->
</a>
</div>
<!--ME:</SharePoint:SPSecurityTrimmedControl>-->
<div id="ms-designer-ribbon">
<!--SID:02 {Ribbon}-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px;
overflow:hidden;">The SharePoint ribbon will be here when your file is either previewed on or applied to your site.</div><!--PE: End of READ-ONLY PREVIEW -->
</div>
<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly">-->
<!--MS:<wssucw:Welcome runat="server" EnableViewState="false">-->
<!--ME:</wssucw:Welcome>-->
<!--ME:</SharePoint:SPSecurityTrimmedControl>-->
<!--CE: End Ribbon Snippet-->
<div id="s4-workspace">
<div id="s4-bodyContainer">
<header>
<!----> <div data-name="ContentPlaceHolderMain">
<!--CS: Start PlaceHolderMain Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--MS:<SharePoint:AjaxDelta ID="DeltaPlaceHolderMain" IsMainContent="true" runat="server">-->
<!--MS:<asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server">-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--ME:</SharePoint:AjaxDelta>-->
<!--CE: End PlaceHolderMain Snippet-->
</div>
</div>
</div>
</body>
</html>
Any suggestions here....
Thanks in Advance.
PMMRHi,
The Navigation control can be added into your HTML page in the Snippet Gallery:
The two links below about how to create HTML master page and adding snippets needed into it for your reference:
http://borderingdotnet.blogspot.jp/2012/12/how-to-create-html-masterpage-for.html
http://msdn.microsoft.com/en-us/library/office/jj822370(v=office.15).aspx
Feel free to reply if there still any question.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Custom Master Page for Cases in eDiscovery
We are creating eDicovery site using custom site template. Site gets created using custom master page that we have set. Now, there are two option to create New Case.
#1. Use "Create New Case" button on Right Top Corner on home page
#2. OR Go to cases link on Left hand side menu i.e. ('ViewCases.aspx' page)
Problem 1...
this viewCases.aspx application page from _layouts uses seattle.master by default. how to change this?
Problem 2...
If we hover on "create" link on cases page, we see URL as [URL]/newsbweb.aspx?ID=3300.
if we click on this link custom templates for creating cases are not visible. obviously, if I create case using OOB template it will use seattle.master page.
If we remove ID=3300 from browser URL string and refresh, custom templates are available and I can create cases using custom template with my custom master page.
interestingly, "Create New Case" button mentioned in #2 redirects to same page newsbweb.aspx but with no ID parameter and works fine.
Please help how to set master page for viewCases page and what is this 3300 and how to remove it from create link.
Thanking in advance in anticipation of useful pointers.
++By default SharePoint 2013 detects and display the content based on the mobile device. Refer to the following post on how to disable the default view and create a custom mobile view
http://academy.bindtuning.com/deactivate-sharepoint-2013-mobile-view/
Cheers, -
How to get the page layouts programmatically and create a page for that pagelayout
how get the page layouts programmatically and create a page for that pagelayout and add webpart
please help me with da code.Thanks
adityadugyalaHi if your page layouts alreday created then create new page programaticaaly and apply your page ayouts to that page by coding you can do something like following
PublishingWeb publishingWeb =
PublishingWeb.GetPublishingWeb(web);
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
PageLayout layout = layouts[0];
string pageName =
"MyPublishingPage5.aspx";
PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
"/"+ pageName, layout);
newPageUrl = web.Url +"/" + newPage.Url;
newPage.Description = "This my sample publishing page";
newPage.Title = "My Publishing Page";
newPage.Update();
Please follow link
http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
Please mark answer , if you think answer is helpful or correct. -
How to get pages list for a group space or create a page for a group space
hi All,
I am using wc11.1.1.3, I want to use java api to implementing the following functions in site template:
1. Get pages list for a given group space
2. Create a page for a given group space
I researched the following codes from web site:
PageDef newPage = mPageService.createPage(
PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
"MyPageTemplate1.jspx",
"/mytemplates/",
null, null, null);
What should be used instead of PERSONAL_USER_PAGE if a group space page is intended to be created? which parameter is for defining group space name that the page should be created for?
By the way, PageService seems has method for getting list of pages, but how to use it to get page list which is in a specified gs?
Best regardsdid you manage to get the page list using Page Service API?
-
How to set custom master page for sharepoint application page ?
Hello,
I need to apply custom master page for the custom application page I created for login purpose.
Can anyone please let me know how to apply master page for custom application page ?
Note : I need to set custom master page for application page at web application level.
thanks,
Dipti ChhatrapatiHi Dipti,
You can use the same reference as ASP.NET
Example
"<%@ Page Language="C#" masterpagefile="../_catalogs/masterpage/minimal.master" title="teste" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full"
meta:progid="SharePoint.WebPartPage.Document" %>"
You can use SharePoint Designer 2010
http://www.microsoft.com/download/en/details.aspx?id=16573 to make the reference from you aspx page to you custom masterpage.
When you are editing a aspx page you can go to ribbon "Style" and attach the custom Masterpage.
André Lage Microsoft SharePoint, CRM Consultant
Blog:http://aaclage.blogspot.com
Codeplex:http://spupload.codeplex.com/http://simplecamlsearch.codeplex.com/
Maybe you are looking for
-
Service & spares not billed to customer scenario
Dear friends, We have a scenario where the customer location wil be defined as functional locations.Now when the equipement has to be repaired the customer informs the cs department about the same.A service notification will be created in the system.
-
.Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.
-
I can not reach to my accounts on computer since it says that 'connection server to .... is timed out'. However, I can get my emails through my iphone. How can I make my accounts work on computer? This problem occurs occasionally but create a big pro
-
SQL Developer 3.0 EA Migrations available
SQL developer 3.0 is available now as an EA which has several new and improved features to help you with your migration project 1. Server migration for Sybase and Sql Server 2. SQL Sever 2008 support 3. Copy to Oracle functionality - right click on a
-
Hi I have a requirement to copy the values of an element in a node to another element in the same node. The only method I know is to use getter - setter method for the two elements.However , it is a cumbersome task , given my node has 60 attributes.