Page Layout - Publishing page url

I have three social tags in page layout , I'm using design manager
I need to get current publishing page in the page layout
<a href=https://www.facebook.com/sharer/sharer.php?u=??? target="_blank">
Share on Facebook
</a>
Thanks

The easiest solution would be to build the href using JavaScript. Then you could get the URL of the current page using the location.href JavaScript property.
w: http://blog.mastykarz.nl | t:
@waldekm | c: http://www.mavention.com

Similar Messages

  • Placeholder not visible in custom page layout - publishing site

    Hi,
    I have a custom page layout in publishing site.
    I had added a new textbox to the existing page layout as below:
    <tr id="trCustomContent2">
    <td id="tdCustomContent" style="padding-top:5px;">
    <div id="divCustomContent" style="padding-left:6px !important;vertical-align:top; width:450px;" >
    <h3>
    <PageFieldTextField:TextField ID="TextField1" FieldName="fec9f0d3-77a3-4afc-99d3-99d2cb745d2c" runat="server" >
    </PageFieldTextField:TextField></h3>
    </div>
    </td>
    </tr>
    I deployed the changes, but in the edit mode of the page, i am not able to see the page layout.
    This issue is happening when a subsite is created. For the existing sites, the textbox is getting shown.
    How to fix this?
    Thanks

    Hi Venkatzeus,
    For each page layout, it has associated with a content type.
    You can click into the content type in site content types under Web Designer Galleries in root site settings.
    And then click Add from new site column to create and add the new site column to this content type.
    After that you can add this column to the page layout(.aspx page for the page layout) with the code below(you need to change the fieldname value to the corresponding GUID of the column):
    <div>
    <Publishing:EditModePanel runat="server" CssClass="edit-mode-panel">
    <PageFieldTextField:TextField ID="TextField1" FieldName="6bf50814-27d1-4b36-9980-c702c25080d7" runat="server">
    </PageFieldTextField:TextField>
    </Publishing:EditModePanel>
    </div>
    Best regards.
    Victoria
    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]

  • Transferring Custom Master-Page, Custom Page Layouts and Pages created to a new SharePoint Site.

    Hi All,
    I have a SharePoint 2013 Publishing Site for testing named 'Test'. In the Test I have created a Custom Master-Page and several Custom Page Layouts. Also using them I have created  several pages. Now they all are connected to the navigation. Now I want
    to transfer all the pages, custom master-page and custom page layouts to a new site (a publishing site) that will be used as production. Will I able to do this or not. Please advice me with best practices.
    Thanks and regards,
    Chiranthaka

    Hi Chiranthaka,
    thanks for posting your query, The master page can't be copied in designer and pasted into the new site collection. A better approach would be to bundle it into a feature and deploy it to the farm where it can't be activated and used.
    If you want to copy your master page to another site collection you can download your master page from the master page gallery and upload it to the the master page gallery of the second site collection. From the root site Site Actions > Site Settings
    > (Galleries)Master pages and page layouts
    If you want to deploy the same master page to multiple site collections using a feature, create a module in Visual Studio, add your custom master page to the module, and create an element manifest something like this:
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="Master Pages" List="116" Url="_catalogs/masterpage" RootWebOnly="TRUE">
    <File Path="Master Pages\MyCustom.master" Url="MyCustom.master" Type="GhostableInLibrary"></File>
    </Module>
    </Elements>
    The basic idea is to have your site-scoped feature include a module that copies your custom master page from the file system to the masterpage gallery. Since the feature folder is shared, the same master page gets copied to the site collection master page
    gallery whenever you activate the feature.
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Creating Page Layout Problem : Page Content Disappears

    Hello,
    I am a recent grad and new to the world of Sharepoint and ASP.
    I created a Page Layout with 3 columns and I implemented the 'Page Content' in each column.
    When I enter anything ( Text or HTML)  in the Page Content and save, it immediately discards what I entered and saved.
    What am I doing wrong? 
    Thanks in advance.

    Hi,
    According to your post, my understanding is that Page Content Disappears after you save the created Page Layout.
    The issues is caused by that Page Layout is not assocaited with the content type.
    Please make sure you create Page Layout correctly. You can refer to:
    How to: Create a page layout in SharePoint 2013
    Here is a similar thread for you to take a look at:
    http://islamkhattab.blogspot.in/2013/04/publishing-page-layout-image-field.html#!/2013/04/publishing-page-layout-image-field.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Placing an object/photo over gutter in two page layout in Pages???

    So here's my issue. I'm new to pages and need all the help I can get. I have a two page layout and I'm trying to place a large photo across the gutter so that it will show on both pages. It will let me create the object and place a picture in it but it disappears on the other page. What am I not doing? Thanks for your help!
    mrs.rodgers

    Welcome to the forums, mrs. rodgers.
    Do you mean you have an actual two page layout (with "Facing Pages" selected in the Document Inspector)? If so (and it's not just a two column layout on one page), then there is unfortunately no way to set a picture to span two pages automatically.
    Your best bet is to fake the effect by placing two copies of the picture, one on each side of the gutter, with appropriate masks set on each, so that the left page has the left side of the picture, and the right page has the right side. Do note, however, that most printers won't print right to the edge of the page (so-called "borderless" or "full-bleed" printing), and so it may not turn out exactly as you desire.

  • I am getting I am getting nativehr 0x80070057 /nativehr nativestack /nativestack error when I change my publishing page layout in SharePoint 2010.

    Hello All,
    I am getting the following error when I tried to change the page layout of a publishing page in my site collection using SharePoint 2010.
      Here I am just trying to change the page layout to "Four Item Grid" page layout. But i am not sure why this error is coming up.
    I tried to search in the internet but no one has this kind of issue it seems.
     Can anybody help me in resolving this issue.

    I had this same problem when trying to change the layout on a publishing page.
    What I found by running some powershell script against the pages library is that the ows_PublishingPageLayout field actually referenced a layout url from another site. What had happend is that an author downloaded a copy of a page from one site and
    uploaded it to another site. Evidently when you do this the url reference to the page layout file does not get corrected (it's fully qualified)
    To fix this problem I wrote some powershell script to update the ows_PublishingPageLayout url so the site host url was corrected and did not have the old/original site's url.
        $SiteUrl = "http://your.site.url.here"
        $SPSite = New-Object Microsoft.SharePoint.SPSite($SiteUrl); 
        $OpenWeb = $SpSite.OpenWeb(); 
        $publishingWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($OpenWeb)    
        $AllPubLayouts = $publishingWeb.GetAvailablePageLayouts()
        $pages = $OpenWeb.Lists["Pages"]
       #view all page layouts
       foreach ($page in $pages.Items)
            if (!$page["ows_PublishingPageLayout"].ToString().Contains($SiteUrl))
                write-host $page.url
                write-host $page["ows_PublishingPageLayout"]    

  • OOTB Left Navigation error in Page Layout SharePoint 2013

    I created a SharePoint 2013 master page through Design Manager in Sharepoint 2013 and created a page layout like we do trough sharepoint designer as in sharepoint 2010 steps are below
    SharePoint Designer--->Page Layouts---->New Page Layout
    now i want to insert left navigation in the page layout ,i tried to insert the following snippet in the page layout 
    <div data-name="QuickLaunch">
                                        <!--CS: Start Vertical Navigation Snippet-->
                                        <!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
    Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                                        <!--SPM:<%@Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                                        <div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
                                            <!--MS:<SharePoint:AjaxDelta ID="DeltaPlaceHolderLeftNavBar" BlockElement="true" CssClass="ms-core-navigation"
    runat="server">-->
                                                <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBar" runat="server">-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarTop" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchTop" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarDataSource" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderCalendarNavigator" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftActions" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<SharePoint:SPNavigationManager ID="QuickLaunchNavigationManager"
    runat="server" QuickLaunchControlId="v4QuickLaunchMenu" ContainedControl="QuickLaunch" EnableViewState="false">-->
                                                        <!--MS:<SharePoint:DelegateControl runat="server" ControlId="QuickLaunchDataSource">-->
                                                            <!--MS:<Template_Controls>-->
                                                                <!--MS:<PublishingNavigation:PortalSiteMapDataSource
    runat="server" ID="SiteMapDS" SiteMapProvider="CurrentNavigation" EnableViewState="false" StartFromCurrentNode="true" ShowStartingNode="false" TrimNonCurrentTypes="Heading">-->
                                                                <!--ME:</PublishingNavigation:PortalSiteMapDataSource>-->
                                                            <!--ME:</Template_Controls>-->
                                                        <!--ME:</SharePoint:DelegateControl>-->
                                                        <!--MS:<SharePoint:AspMenu ID="V4QuickLaunchMenu" runat="server"
    EnableViewState="false" DataSourceId="QuickLaunchSiteMap" UseSimpleRendering="true" Orientation="Vertical" StaticDisplayLevels="3" AdjustForShowStartingNode="true" MaximumDynamicDisplayLevels="0"
    SkipLinkText="">-->
                                                        <!--ME:</SharePoint:AspMenu>-->
                                                    <!--ME:</SharePoint:SPNavigationManager>-->
                                                    <!--MS:<SharePoint:SPNavigationManager ID="TreeViewNavigationManagerV4" runat="server"
    ContainedControl="TreeView" CssClass="ms-tv-box">-->
                                                        <!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/{0}/viewlsts.aspx"
    ID="idNavLinkSiteHierarchyV4" Text="&#60;%$Resources:wss,treeview_header%&#62;" accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;" CssClass="ms-tv-header">-->
                                                        <!--ME:</SharePoint:SPLinkButton>-->
                                                        <!--MS:<SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource">-->
                                                            <!--MS:<Template_Controls>-->
                                                                <!--MS:<SharePoint:SPHierarchyDataSourceControl
    runat="server" ID="TreeViewDataSourceV4" RootContextObject="Web" IncludeDiscussionFolders="true">-->
                                                                <!--ME:</SharePoint:SPHierarchyDataSourceControl>-->
                                                                <!--MS:<SharePoint:SPRememberScroll runat="server"
    ID="TreeViewRememberScrollV4" onscroll="javascript:_spRecordScrollPositions(this);" style="overflow: auto;">-->
                                                                    <!--MS:<SharePoint:SPTreeView
    ID="WebTreeViewV4" runat="server" ShowLines="false" DataSourceId="TreeViewDataSourceV4" ExpandDepth="0" SelectedNodeStyle-CssClass="ms-tv-selected" NodeStyle-CssClass="ms-tv-item" SkipLinkText=""
    NodeIndent="12" ExpandImageUrl="/{0}/images/tvclosed.png" ExpandImageUrlRtl="/{0}/images/tvclosedrtl.png" CollapseImageUrl="/{0}/images/tvopen.png" CollapseImageUrlRtl="/{0}/images/tvopenrtl.png" NoExpandImageUrl="/{0}/images/tvblank.gif">-->
                                                                    <!--ME:</SharePoint:SPTreeView>-->
                                                                <!--ME:</SharePoint:SPRememberScroll>-->
                                                            <!--ME:</Template_Controls>-->
                                                        <!--ME:</SharePoint:DelegateControl>-->
                                                    <!--ME:</SharePoint:SPNavigationManager>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchBottom" runat="server">-->
                                                        <hr />
                                                        <!--MS:<SharePoint:ClusteredSPLinkButton ID="idNavLinkViewAllV4"
    runat="server" Permissions="ViewFormPages" NavigateUrl="~site/{0}/viewlsts.aspx" Text="&#60;%$Resources:wss,quiklnch_allcontent_short%&#62;" accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;"
    CssClass="ms-core-listMenu-item">-->
                                                        <!--ME:</SharePoint:ClusteredSPLinkButton>-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                <!--ME:</asp:ContentPlaceHolder>-->
                                            <!--ME:</SharePoint:AjaxDelta>-->
                                        </div>
                                        <!--CE: End Vertical Navigation Snippet-->
                                    </div>
    but i get the following error when i create page through this page layout
    "Content Place holders are only allowed in master page"
    Can anyone tell me how do i insert left navigation in page layout which is created through sharepoint designer (.aspx file) but master page is created through design manager

    Hi  ,
    As the error says, you need to  add Content Place holders to Mater Page not the Page Layout.
    For  inserting  left navigation, you can add Vertical Navigation SharePoint component to the master page using Snippets  manager:
    1.
    Open the site then click design manager link from right top corner "Settings".
    2.
    Click “Edit Master Pages” link.
    3.Click your custom mater page. It will open preview page.
    4.
    Once open the preview page then click Snippets menu from top right side. It will open “Snippet Gallery” in new tab page.
    5.
    Click the Vertical Navigation menu item in “DESIGN “tab.
    6.
    In this page we can easy to configure component properties.
    After customization must click the update button then only the changes are reflected in the component snippet.
    7.
    Once click the update button the HTML code automatically generated in the “HTML snippet” box and click “Copy to Clipboard” button.
    8.
    Open the mapped network drive then open the Mater Page HTML file and paste HTML snippet where you want the navigation to show.
    Reference:
    http://www.sharepointpals.com/post/Add-snippets-in-Page-layout-using-design-manager
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Custom Master Page changes wont apply to few page layouts

    Dear All
    I'm having issue applying custom branding to SharePoint 2010 sites.. Branding works overall fine but it doesn't apply to few pages.
    For example if I click on Enterprise and Metadata Keyword Settings in Document library the changes are not applied. I notice it's a page called metadatacolsettings.aspx in layouts and I see it references application.master.. Similarly I see couple
    of other pages out of sync and all of them have application.master as Master Page..
    Any ideas why this could be happening.. Please let me know
    Thanks

    Hi,
    pls check below links
    There are a few things to consider.
    Have all page layouts / master pages been checked in and published / approved?
    Have you created a new page using the custom page layout?
    Are you creating or modifying this content?
    Keep in mind, the progression of rendering goes as follows:
    masterpages determine the ASP.NET structural layout.
    Page Layouts determine the SharePoint structural layout based on the masterpage ASP.NET structural layout.
    Your .aspx pages determine what content to display based on the Page Layout SharePoint structural layout.
     https://social.technet.microsoft.com/Forums/sharepoint/en-US/00d354cd-e49b-429f-8648-50251e1b39a0/changes-to-page-layout-not-refelected-when-using-custom-master-page?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to place a WebPart in Publishing Page Content

    Hi,
    when you use a publishing page you are able through the ribbon to add existing webparts into the content of the publishing page.
    I would like to add programmatically a webpart into the content of the publishing page. I couldnt find anyting to that question on the web.
    Can someone help?
    regards
    yavuz
    Regards
    Yavuz
    www.ybog.net | Field notes on software development and technology

    Try below:
    http://sharepoint2010mind.blogspot.in/2012/06/add-webpart-programmatically-publishing.html
    http://sharepoint.stackexchange.com/questions/86026/add-programmatically-custom-web-part-to-page-without-web-part-zone
    PublishingWeb pWeb = PublishingWeb.GetPublishingWeb(web);
    string pageName = "NewPage.aspx";
    PageLayout[] pageLayouts = pWeb.GetAvailablePageLayouts();
    PageLayout newPage = pageLayouts[0]; //Body only type of page layout
    PublishingPageCollection pages = pWeb.GetPublishingPages();
    PublishingPage nPage = pages.Add(pageName, newPage);
    nPage.Update();using (SPSite site = new SPSite("http://win2008/sites/publishing"))
    SPWeb web = site.RootWeb;
    SPFile page = web.GetFile("Pages/Lipsum.aspx");
    page.CheckOut();
    using (SPLimitedWebPartManager wpmgr = page.GetLimitedWebPartManager(PersonalizationScope.Shared))
    Guid storageKey = Guid.NewGuid();
    string wpId = String.Format("g_{0}", storageKey.ToString().Replace('-', '_'));
    XmlElement p = new XmlDocument().CreateElement("p");
    p.InnerText = "Hello World";
    ContentEditorWebPart cewp = new ContentEditorWebPart
    Content = p,
    ID = wpId
    wpmgr.AddWebPart(cewp, "wpz", 0);
    string marker = String.Format(CultureInfo.InvariantCulture, "<div class=\"ms-rtestate-read ms-rte-wpbox\" contentEditable=\"false\"><div class=\"ms-rtestate-read {0}\" id=\"div_{0}\"></div><div style='display:none' id=\"vid_{0}\"></div></div>", new object[] { storageKey.ToString("D") });
    SPListItem item = page.Item;
    string content = item["PublishingPageContent"] as string;
    item["PublishingPageContent"] = content.Replace("|", marker);
    item.Update();
    page.CheckIn(String.Empty);
    http://sharepoint.stackexchange.com/questions/86026/add-programmatically-custom-web-part-to-page-without-web-part-zone
    http://www.zeemanj.net/?p=291

  • InDesign CS5 ME Page Layout

    Hi, Joel  !
    Our student association publishes a journal. We left MS Word to start with InDesign CS5 ME since we need to put Arabic and French texts. I wonder how to change the ME Page layout (first page on the right) to standard (non ME), meaning first page on the right. If I add facing pages, they come out in a wrong order : page 2 on the right and page 3 on the left, which is wrong in a non-arabic journal. I tried to disable "Allow pages to shuffle" but no success. Is there any way to correct this. Many, many thanks.

    One thread is enough. I'm going to lock this one and folks who want to help can continue in http://forums.adobe.com/message/5048578

  • Inherit page layout

    Hello,
    we have created a page (=page 1) which has a 2 column page layout.
    We then copy this page, and paste it as a deltalink into another folder.
    Opening the new page (page 2), the layout is the same as from page 1 (which is correct).
    Then, when I change the name of the second page (page 2) into e.g. 'home', for some reason also the attibute on the page 'main object' is changed (you get this 'is not equal' icon in front of this attribute').
    When I then change the page layout on 'page 1' into 3 colums, I expect this to be changed on the second page (page 2/home) to be changed as well.
    Unfortunately, this doesn't happen !!!
    It does work when I do not change the page name on the second page, but well, I don't want all my pages to have the name 'page 1'.......
    Hope someone can help me out ...

    Hi Evelin,
    Once you change the name of the delta linked target page i dont think,it would reflect the details of the changes made in the Source page.
    check this link :
      <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/52/2aae870450df4b945c4481f2ac1c2e/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/52/2aae870450df4b945c4481f2ac1c2e/frameset.htm</a>
    Probably you can try this... first delta link the page and then change the layout in source so that it gets reflected in the target page, once it gets completed then change the name of the target page locally in your case it is page 2.
    So that you can have a different name to the target page as well.
    Check this link:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/72/2b9a1deaf51f45845c05a2d8ee58e1/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/72/2b9a1deaf51f45845c05a2d8ee58e1/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/52/2aae870450df4b945c4481f2ac1c2e/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/52/2aae870450df4b945c4481f2ac1c2e/frameset.htm</a>
    Hope this helps you.
    Regards,
    Vivekanandan

  • Customized Page Layout templates

    How to develop new customized community page layout templates.
    Eg, I need to have a template with more than 3 column layout and also a 3 column page laypout template on which the first column will be the widest.
    Anyone can help me on this or guide me to some documentation reg this. Can ping me at [email protected]
    Regards,
    Satish

    Satish,
    I believe you are talking about portlet layout, not page layout. Page layout is related to navigation, while portlet layout deals with how you want your portlets to display and Developing custom portlet layout is very hard.
    It is not the layout aspect that is hard - you can edit MyPortalContentView to tweak the layout and use Activityspaces override to plugin your custom MyPortalContentView (see devcenter.plumtree.com for documentation on this) - it is all the other parts.
    For example, you can create a 4 column layout, but that would mean that you need to add this new portlet layout to the layout picker in the Edit Page editor, and you need to figure out how to store portlet to the 4th column and deal with wide and narrow portlets in the new column.
    The only situation where it would be feasible to create new column is if you have put one or a few hardcoded portlets there to avoid the management issues, but that is not trivial either, as you have to write custom code against the Server API.

  • Sandbox Solution to create a Publishing page using page layout.

    How to create a Sandbox Solution to create a Publishing page using page layout.

    Hi Sriram,
    You can use the below code
    using (SPSite site = new SPSite(url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPList wiki = web.Lists["Pages"];
    String urlWiki = wiki.RootFolder.ServerRelativeUrl.ToString();
    PublishingSite pubSite = new PublishingSite(web.Site);
    string pageLayoutName = "Layoutname.aspx";
    string layoutURL = web.Url + "/_catalogs/masterpage/" + pageLayoutName;
    PageLayout layout = pubSite.PageLayouts[layoutURL];
    PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web);
    string pageName ="home.aspx";
    PublishingPage newWikiPage = null;
    newWikiPage = publishingWeb.GetPublishingPages().Add(pageName, layout);
    newWikiPage.Title ="";
    newWikiPage.Update();
    web.AllowUnsafeUpdates = false;
    A'Kumar

  • Deployment of publishing page using feature with custom layout in SP 2013 + office 365 + site Template

    Hello Everyone,
    deployed page layout as based this blog
    http://www.eliostruyf.com/provision-your-html-designs-master-pages-page-layouts-to-sharepoint-2013/, but while trying to create Publishing pages under Page
    "Error: This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout."
    my xml as below
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="PageLayouts" Url="_catalogs/masterpage" RootWebOnly="TRUE">
    <File Path="PageLayouts\DataByte_Home.html" Url="DataByte_Home.html" Level="Draft" ReplaceContent="true" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
    <Property Name="Title" Value="DataByte_Home" />
    <Property Name="MasterPageDescription" Value="DataByte_Home" />
    <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
    <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png" />
    <Property Name="PublishingAssociatedContentType" Value=";#$Resources:cmscore,contenttype_welcomepage_name;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4;#" />
    </File>
    </Module>
    <Module Name="CustomPages1" Url="Pages" Path="" RootWebOnly="FALSE">
    <File Name="Home.aspx" Url="Home.aspx" Type="GhostableInLibrary" Path="PageLayouts\DataByte_Home.html" IgnoreIfAlreadyExists="TRUE">
    <Property Name="Title" Value="Home" />
    <Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/DataByte_Home.aspx"/>
    <Property Name="ContentType" Value="Page" />
    </File>
    </Module>
    </Elements>
    as feature activation i am execution same code to upgrade .html to .aspx.
    please guide me and give me some suggestion to packaged solution in single wsp(with Publishing pages, Page layouts and master page and site template to create site with all content)?

    Hi,
    Usually I separate page layout and publishing page into two different modules. Then you deploy first the page layout module to ensure that SP will create the aspx file. After that the second module lets SP to apply the existing page layout to your publishing
    page.
    It's just an idea. I am not 100% sure. Let me know.
    Regards,
    Vinod

  • SharePoint 2013 - Missing Publishing Page Ribbon/Tab on custom page layout - Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,.... VS CodeBehind="BlogDemo.aspx.cs" Inherits="DemoProject.Branding.BlogDemo"

    I created page layouts using Visual Studio 2013 and SharePoint 2013. I added both ASP.NET web controls (e.g. asp:Label, asp:HyperLink) and SharePoint web controls (e.g. SharePointWebControls:UrlField) in a page layout.
    However, when I deployed the solution, I cannot edit all the ASP.NET & SharePoint web controls (column fields from custom content type used for the page layout) except the web part zones.
    Then I found out about inherits property:
    1) if I use the code for the page layout as shown below:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BlogDemo.aspx.cs"
    Inherits="DemoProject.Branding.BlogDemo" MasterPageFile="/_catalogs/masterpage/DemoProject/DemoMasterPage.master"
    %>
    Result: There is no publishing ribbon/tab. E.g. Edit, Publish..... although both ASP.NET & SharePoint web controls can be displayed on the page layout.
    Screenshot:
    2) if I use the code instead as shown below:
    <%@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"
    meta:progid="SharePoint.WebPartPage.Document" %>
    Result: Publishing ribbon/tab is available, but ASP.NET web controls won't appear. Only SharePoint web controls appear on the page layout.
    Screenshot:
    I wonder how I can combine both codes to ensure that the page layout can have publishing ribbon/tab and displays both ASP.NET & SharePoint web controls.

    Found a way to solve the issue
    I follow the solution:
    http://pinnacleofindiana.com/blog/developers/2012/03/28/creating-a-sharepoint-2010-page-layout-with-code-behind/
    http://blogs.msdn.com/b/kaevans/archive/2011/04/02/code-behind-page-layouts-with-visual-studio-2010.aspx

Maybe you are looking for

  • Flash CS5 Button Help

    To start, I'm a total newbie in Flash, so I'm sorry if what I'm asking is ridiculously primitive, but I was literally thrown into this blindfolded and I'm using google and several forums to help me out. What I'm doing:  redesigning a website.  At the

  • Possible update solution for some Jelly Bean issues on Razr Maxx

    I bought a Razr Maxx used two weeks ago and wanted to a post a possible solution to the broken Jelly Bean update. My Razr Maxx (practically new) was slow, lagged, and gave me about 10 hours of battery life. Also, my Wi-Fi was horrible just 10 feet fr

  • Program exits - IF_SWF_IFS_WORKITEM_EXIT

    Hi experts, i have implemented a class with IF_SWF_IFS_WORKITEM_EXIT interface with the method BEFORE_EXECUTION and STATE_CHANGED; in these methods, i do some authority check and i give errore message. In this way, the wi has the reserved status. In

  • 3D Graphs in VC ?

    Hi, is posible get 3D Pie Graph in Visual Composer ? I remember old times WAD only have simples graphs, after install addon in IGS then get all Graphs in WAD, we need know if similar problem apply in Visual Composer for List the Graphs. Thank you.

  • WSUS import updates error

    Using WSUS 3.2. When trying to import updates from MU Catalog if get the following error, "The website has encountered a problem  [Error number: 8DDD0020]". After selecting Import Updates, IE launches and tries to load, "http://catalog.update.microso