Placeholder not visible in custom page layout - publishing site

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;" >
<PageFieldTextField:TextField ID="TextField1" FieldName="fec9f0d3-77a3-4afc-99d3-99d2cb745d2c" runat="server" >
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?

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):
<Publishing:EditModePanel runat="server" CssClass="edit-mode-panel">
<PageFieldTextField:TextField ID="TextField1" FieldName="6bf50814-27d1-4b36-9980-c702c25080d7" runat="server">
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

  • Custom Page Layout Columns Fail to Appear Outside Preview

    I created a custom page layout (jsp) in the Netweaver Developer Studio and used it as a template to create a page.  The page layout has 7 containers/columns.  When I create a page using that template and view the page object's layout, everything looks fine, and once I've assigned an iView to each column and preview the page, it looks good too - all iviews are there.  When I assign it to a role and preview the page from there, it also looks fine. 
    However, here is the problem: when I navigate to the role on the portal to view the page, the last (bottom) two iviews fail to appear, as if those iviews or columns were never assigned. 
    Is this a problem with having too many columns in a page layout?  Has anyone had this problem before?
    I tried deleting columns 4 and 5 in the page layout so that there were only 5 columns total (but the last two were the same last two from before), and that worked perfectly well.  When I added just one more, things got messed up again.  Please help.

    Just an update...
    When I create a 1 column (full width) page (not using a custom page layout or anything), and then add the problem page I was talking about above to this 1 column page (via deltaLink), and add this new page to the role, the new page displays the custom page perfectly, just as the preview shows.  The old page still refuses to display the last two columns (unlike its preview), but they appear in the old page WITHIN the new page.  I don't know why this is.
    Mainly for curiosity but also because I do not necessarily wish to use this solution (I will need to create many pages and this will double the number of pages to create), I would appreciate it if people could continue to offer suggestions.

  • Custom page layouts are not getting displayed in ribbon

    I have created a custom page layout under welcome category. This is getting displayed in pages library while creating a page and also in page layout option from site settings which is fine. But when a page is in edit mode if we click page->page layouts
    from ribbon, all the default page layouts are getting displayed except my custom page layout.
    Please advise.

    you have a subsite in a site collection •the publishing feature is activated in the subsite, but not in the site collection •you want to edit/add page layouts on the site collection level, to be used within your subsite •when you open the site collection
    in SharePoint Designer, you can't see Page Layouts in the Site Objects panel You now have 2 options: you can either activate the publishing feature in the site collection (and the Page Layouts link comes back), or you can use the All Files link and browse
    to the master pages and page layouts library (_catalogs > masterpage.) Either option will do, unless you really don't want the publishing feature in the site collection.
    To fix the issue go to Site Actions -> Site Settings in the upper left corner.
    Under "Site Collection Administration" click on "Site Collection Features".
    Look for "SharePoint Server Publishing Infrastructure" and activate it. It might take a moment to load.
    Next return to "Site Settings" and click on "Manage Site Features"
    Look for "SharePoint Server Publishing" and activate it. It might take a moment to load.
    If this helped you resolve your issue, please mark it Answered

  • Custom control in custom page layout not getting shown

    I have created a site column for Date field:
    <Field ID="{GUID}" Name="MyCustomPageLayoutDate" StaticName="MyCustomPageLayoutDate" Group="TestGroup" Type="DateTime" Format="DateOnly" DisplayName="Date" Required="FALSE" ><Field ID ="{guid}" Name ="MyCustomLayoutDateDisplay" DisplayName="Date Display"
        <Formula>=TEXT([Date],"MMMM dd, yyyy")</Formula>
    This is added in the page layout content type:
    <FieldRef ID="{guid}" Name="MyCustomPageLayoutDate" />  <FieldRef ID="{guid}" Name ="MyCustomLayoutDateDisplay" />
    In the custom page layout, it is added as below:
    <Publishing:EditModePanel ID="EditModePanel5" runat="server" CssClass="edit-mode-panel">
    <PublishingWebControls:EditModePanel ID="DateEditModePanel" runat="server" PageDisplayMode="Edit" SupressTag="True">
    <td >
    <PageFieldDateTimeField:DateTimeField ID="DateTimeField1" FieldName="GUID" runat="server">
    <PublishingWebControls:EditModePanel ID="DatePublishModePanel" PageDisplayMode="Display" runat="server">
    <SharePoint:CalculatedField ID="CalculatedDateField" FieldName="guid" runat="server" />
    In the edit mode, the date is getting shown, and I am able to select a date. When the page is published, the entered date is not getting displayed.
    How to fix this?

    I tried to reproduce this issue like this:
    1. Create a DateTime site column “MyDateTimeCol01”;
    2. Create a Calculated site column “MyCalculated03” with formula “=TEXT(MyDateTimeCol01,"MMMM dd, yyyy")”;
    3. Create a Page Layout content type contains the two site columns above;
    4. Create a Page Layout with the Page Layout content type, the source code of this page layout as below:
    <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
    <PublishingWebControls:EditModePanel runat=server id="EditModePanel1" PageDisplayMode="Edit">
    <SharePointWebControls:DateTimeField FieldName="9492c1ff-851f-4d1c-bcbf-5637b69ebd63" runat="server"> </SharePointWebControls:DateTimeField>
    <PublishingWebControls:EditModePanel runat=server id="EditModePanel2" PageDisplayMode="Display">
    date time text:
    <SharePointWebControls:CalculatedField FieldName="9c00c4dc-6a53-4abd-9fa4-6b4dd266c898" runat="server"></SharePointWebControls:CalculatedField>
    5. After that, create a publishing page with this custom page layout:
    In Edit mode:
    In Display mode:
    I suggest you follow the steps above to make another test to see if the issue persists.
    Patrick Liang
    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]

  • Custom Master Page with Custom Page Layout

    Hi All,
    I have created a Custom SharePoint Master Page. In that Master Page I have created a custom Header & Footer.  In between the header and the footer I created a space to put page's content.
    However I have created a page using that master page and it was successfully published.
    After that I wanted to create a Custom Page Layout using that Page previously created. That also was a successful one. But when default Page Layouts in SharePoint 2013 inserted to a page it shows an area that can add content. But in my Page Layout inserted
    to a page it does not show like that.
    So what have I missed when I created the Custom Page Layout? Could you kindly someone tell me how to solve this matter?
    Thanks and regards,

    Can you confirm that your custom page layout has the same WebPart Zones as the default one? They need to be if you wish to see content that was added with the default page layout.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer

  • Social comment control in custom page layout stucks at "Working" for read access users

    I created a custom page layout which is attched to my custom content type.
    i have a custom field control which is derived from RichImageField.
    i have also added a social comment control to the page layout using
    <SharePointPortalControls:SocialCommentControl ID="SocialCommentControl1" runat="server"  />.
    Now the problem is, an user who have read access for a pages library should post comments. but its not working and when the user clicks post button it stucks at working. but when the user is given contribute access then it works and the comments are posted.
    And one more thing is if i remove my custom field control from the page layout, then user with read access can post the comment without any issues.
    i am sure the issue is caused by my custom field control but dont know how to solve it. i dont want to give contribute access to the users as they can edit the content of the page also. Any help would be appreciated.
    This is the custom field control code.
    public class mycompanyRichImageField : RichImageField
    public static string webimage = null;
    #region Private variables
    /// <summary>
    /// File upload control used to upload image.
    /// </summary>
    private FileUpload fileUpload;
    /// <summary>
    /// Upload button.
    /// </summary>
    private Button btnSave;
    /// <summary>
    /// Delete button.
    /// </summary>
    private Button btnClear;
    /// <summary>
    /// Article image.
    /// </summary>
    private Image imgPicture;
    /// <summary>
    /// Image width.
    /// </summary>
    private DropDownList ddlWidth;
    /// <summary>
    /// Temporary store image url.
    /// </summary>
    private Label lblFileName;
    /// <summary>
    /// Image text.
    /// </summary>
    private TextBox txtImage;
    /// <summary>
    /// Value of image field.
    /// </summary>
    private ImageFieldValue pageImage;
    /// <summary>
    /// List item - current article.
    /// </summary>
    private SPListItem ArticlePage = SPContext.Current.ListItem;
    /// <summary>
    /// The first image width dropdown list options, default value 240 px.
    /// </summary>
    // private int imageWidthWide = 400;
    //private int height = 225;
    /// <summary>
    /// The second image width dropdown list options, default value 120 px.
    /// </summary>
    private int imageWidthNarrow = 126;
    /// <summary>
    /// Picture library to store the image files.
    /// </summary>
    private string imageLibrary = "Images";
    /// <summary>
    /// List field to store Article image.
    /// </summary>
    private string imageField = "Page Image";
    /// <summary>
    /// List field to store image text.
    /// </summary>
    private string imageTextField = "Image Text";
    private string preview = "Preview";
    /// <summary>
    /// List field to store rollup image.
    /// </summary>
    private string rollupImageField = "Rollup Image";
    /// <summary>
    /// Whether to update the rollup image using the current image.
    /// </summary>
    private bool updateRollupImage = false;
    /// <summary>
    /// Whether to display image text.
    /// </summary>
    private bool enableImageText = true;
    #region Properties
    /// <summary>
    /// Gets or sets the first choice of image width.
    /// </summary>
    //public int ImageWidthWide
    // get
    // return this.imageWidthWide;
    // set
    // this.imageWidthWide = value;
    //public int ImageHeight
    // get
    // return this.height;
    // set
    // this.height = value;
    /// <summary>
    /// Gets or sets the second choice of image width.
    /// </summary>
    public int ImageWidthNarrow
    return this.imageWidthNarrow;
    this.imageWidthNarrow = value;
    /// <summary>
    /// Gets or sets the name of the picture library that is used to store image files.
    /// </summary>
    public string ImageLibrary
    return this.imageLibrary;
    this.imageLibrary = value;
    /// <summary>
    /// Gets or sets the field name of image.
    /// </summary>
    public string ImageField
    return this.imageField;
    this.imageField = value;
    /// <summary>
    /// Gets or sets the field name of image text.
    /// </summary>
    public string ImageTextField
    return this.imageTextField;
    this.imageTextField = value;
    /// <summary>
    /// Gets or sets the field name of rollup image.
    /// </summary>
    public string RollupImageField
    return this.rollupImageField;
    this.rollupImageField = value;
    public string Preview
    return this.preview;
    this.preview = value;
    /// <summary>
    /// Gets or sets a value indicating whether to update rollup image using current image.
    /// </summary>
    public bool UpdateRollupImage
    return this.updateRollupImage;
    this.updateRollupImage = value;
    /// <summary>
    /// Gets or sets a value indicating whether the image text should be displayed.
    /// </summary>
    public bool EnableImageText
    return this.enableImageText;
    this.enableImageText = value;
    #region Override methods
    /// <summary>
    /// Using get method instead of set method to set the value.
    /// set method cannot be used here.
    /// </summary>
    public override object Value
    ImageFieldValue value = new ImageFieldValue();
    value.ImageUrl = string.IsNullOrEmpty(this.lblFileName.Text) ? this.imgPicture.ImageUrl : this.lblFileName.Text;
    // value.Width = string.IsNullOrEmpty(this.ddlWidth.Text) ? this.ImageWidthWide : Convert.ToInt32(this.ddlWidth.Text);
    // value.Height = this.ImageHeight;
    ////update the page rollup image.
    if (this.UpdateRollupImage)
    this.ArticlePage[this.RollupImageField] = value;
    if (this.EnableImageText)
    this.ArticlePage[this.ImageTextField] = this.txtImage.Text;
    return value;
    base.Value = value;
    /// <summary>
    /// Intialize all controls.
    /// </summary>
    protected override void CreateChildControls()
    this.pageImage = (ImageFieldValue)this.ArticlePage[this.imageField];
    this.ddlWidth = new DropDownList();
    this.ddlWidth.Width = 99;
    // this.ddlWidth.Items.Add(this.ImageWidthWide.ToString());
    if (this.pageImage != null && !string.IsNullOrEmpty(this.pageImage.ImageUrl))
    // if (this.pageImage.Width >= this.ImageWidthWide)
    // // this.ddlWidth.SelectedIndex = 0;
    // // this.ddlWidth.SelectedIndex = 1;
    // this.Controls.Add(this.ddlWidth);
    this.imgPicture = new Image();
    if (this.pageImage != null && !string.IsNullOrEmpty(this.pageImage.ImageUrl))
    this.imgPicture.ImageUrl = SPContext.Current.Site.Url + this.pageImage.ImageUrl;
    this.fileUpload = new FileUpload();
    this.fileUpload.Width = 180;
    this.btnSave = new Button();
    this.btnSave.Text = "Upload";
    this.btnSave.CausesValidation = false;
    this.btnSave.Visible = string.IsNullOrEmpty(this.imgPicture.ImageUrl) ? true : false;
    this.btnSave.Click += new EventHandler(this.BtnSave_Click);
    this.btnClear = new Button();
    this.btnClear.Text = "Delete";
    this.btnClear.CausesValidation = false;
    this.btnClear.Visible = !this.btnSave.Visible;
    this.btnClear.Click += new EventHandler(this.BtnClear_Click);
    this.lblFileName = new Label();
    if (this.EnableImageText)
    this.txtImage = new TextBox();
    this.txtImage.TextMode = TextBoxMode.MultiLine;
    this.txtImage.Rows = 4;
    this.txtImage.Text = this.ArticlePage[this.ImageTextField] == null ? string.Empty : this.ArticlePage[this.ImageTextField].ToString();
    /// <summary>
    /// Render the field in page edit mode.
    /// </summary>
    /// <param name="output">Output stream.</param>
    protected override void RenderFieldForInput(System.Web.UI.HtmlTextWriter output)
    output.Write("<div style='padding-bottom:12px'>");
    if (!string.IsNullOrEmpty(this.imgPicture.ImageUrl))
    output.Write("<br />");
    // this.imgPicture.Width = ((ImageFieldValue)this.Value).Width;
    // this.imgPicture.Height = ((ImageFieldValue)this.Value).Height;
    if (this.EnableImageText)
    this.txtImage.Width = this.imgPicture.Width;
    if (this.EnableImageText)
    output.Write("<br />");
    output.Write("<br /><br />");
    output.Write("<br /><br />");
    /// <summary>
    /// Render the field in page display mode.
    /// </summary>
    /// <param name="output">Output stream.</param>
    protected override void RenderFieldForDisplay(System.Web.UI.HtmlTextWriter output)
    if (this.ListItemFieldValue != null)
    output.Write("<div style='padding-bottom:12px'>");
    if (this.EnableImageText && this.ArticlePage[this.ImageField] != null
    && this.ArticlePage[this.ImageTextField] != null)
    //string strImgWidth = string.IsNullOrEmpty(this.ddlWidth.Text) ? this.ImageWidthWide.ToString() : this.ddlWidth.Text;
    //string strImgHgt = this.ImageHeight.ToString();
    output.Write("<div style='width:");
    // output.Write(strImgWidth);
    // output.Write(this.imgPicture.ImageUrl);
    // output.Write("<div style='height:");
    // output.Write(strImgHgt);
    output.Write(";margin-right:4px;' align='left'>");
    #region Button events
    /// <summary>
    /// Delete image file from the library and empty the image field.
    /// </summary>
    /// <param name="sender">Delete button.</param>
    /// <param name="e">No arguments.</param>
    protected void BtnClear_Click(object sender, EventArgs e)
    ////remove the image file from the Images library
    using (SPSite site = new SPSite(
    using (SPWeb currentWeb = site.OpenWeb())
    SPDocumentLibrary imageList = (SPDocumentLibrary)currentWeb.Lists[this.ImageLibrary];
    SPFolder rootFolder = imageList.RootFolder;
    currentWeb.AllowUnsafeUpdates = true;
    ////cannot delete specified file, this means file doesn't exist, the file must be deleted
    ////directly in the Images library by someone
    ////don't do anything here
    currentWeb.AllowUnsafeUpdates = false;
    if (this.pageImage != null)
    this.pageImage.ImageUrl = string.Empty;
    this.imgPicture.ImageUrl = string.Empty;
    this.lblFileName.Text = string.Empty;
    this.btnClear.Visible = false;
    this.btnSave.Visible = true;
    /// <summary>
    /// Upload image file to library and fullfilled the image field.
    /// </summary>
    /// <param name="sender">Upload button.</param>
    /// <param name="e">No argument.</param>
    protected void BtnSave_Click(object sender, EventArgs e)
    this.ArticlePage[this.ImageTextField] = this.txtImage.Text;
    string fileName = this.fileUpload.FileName;
    ////validate file name
    if (fileName == string.Empty || !this.fileUpload.HasFile)
    this.lblFileName.Text = string.Empty;
    if (this.pageImage == null)
    this.Page.ClientScript.RegisterStartupScript(typeof(string), "NoImage", "<script>alert('No image found, please select an image.')</script>", false);
    using (SPSite site = new SPSite(
    using (SPWeb currentWeb = site.OpenWeb())
    SPDocumentLibrary imageList = (SPDocumentLibrary)currentWeb.Lists[this.ImageLibrary]; ////Images
    SPFolder rootFolder = imageList.RootFolder;
    ////the image file name must be unique except for the file name extension
    string imageName = this.ArticlePage.UniqueId.ToString("N") + this.FieldName + Path.GetExtension(fileName);
    ////first delete the image file from the Images library.
    ////if a file with different file name extension is uploaded, the old file won't be overwritten,
    ////and will never be deleted from this page, so it must be deleted before adding a new one.
    if (this.pageImage != null && !string.IsNullOrEmpty(this.pageImage.ImageUrl))
    currentWeb.AllowUnsafeUpdates = true;
    ////cannot delete specified file, this means file doesn't exist, the file must be deleted
    ////directly in the Images library by someone
    currentWeb.AllowUnsafeUpdates = false;
    currentWeb.AllowUnsafeUpdates = true;
    SPFile imageFile = rootFolder.Files.Add(imageName, this.fileUpload.FileBytes, true);
    currentWeb.AllowUnsafeUpdates = false;
    // this.lblFileName.Text = currentWeb.Site.Url + imageList.RootFolder.ServerRelativeUrl + "/" + imageName;
    this.lblFileName.Text = currentWeb.Site.Url + imageList.RootFolder.ServerRelativeUrl + "/_w/" + imageName.Substring(0, imageName.LastIndexOf(".")) + "_" + imageName.Substring(imageName.IndexOf(".") + 1) + "." + imageName.Substring(imageName.IndexOf(".") + 1);
    // webimage = currentWeb.Site.Url + imageList.RootFolder.ServerRelativeUrl + "/_w/" + imageName.Substring(0,imageName.LastIndexOf("."))+"_"+imageName.Substring(imageName.IndexOf(".")+1) +"." + imageName.Substring(imageName.IndexOf(".")+1);
    this.imgPicture.ImageUrl = this.lblFileName.Text;
    this.btnClear.Visible = true;
    this.btnSave.Visible = false;
    This is how i used it in my page layout
     <Article:mycompnayRichImageField runat="server" ID="RichImageField1" InputFieldLabel="Keep image text short and precise" FieldName="PublishingPageImage" UpdateRollupImage="true"/>

    For this issue, I'm trying to involve someone familiar with this topic to further look at it.
    Jason Guo
    TechNet Community Support

  • Adding validation to custom page layout with taxonomyfieldcontrol

    Hi we have a publishing site template with various custom page layouts.  When in edit mode, we need to add some validations to the taxonomyfieldcontrols.  What the best approach to do that?

    According to your post, my understanding is that you wanted to add some validations to the TaxonomyFieldControl.
    We can use the
    TaxonomyFieldControl.validate method to ensure that all taxonomy data is valid.
    To use the built-in taxonomy controls of SharePoint 2010 your best choice might be to go with the
    This is the class the field control of the TaxonomyField,
    TaxonomyFieldControl itself uses internally to render its content, although it does not expose the full capability of the control.
    There are two articles about the TaxonomyWebTaggingControl
    , you can have a look at them.
    Forum 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 Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Custom Page layout and related tmp files causing issues

    I am trying to create custom page layouts using Design Manager and then editing the html file using a text editor.
    I have created a content type (inherited from Page content type) and used this content type for my page layout. I used the snippet manager to add relevant webpart zones and snippets I needed and published the page layout. Under status it shows conversion
    successful but I can see another file with similar name to my page laout but with ~RF119c862.TMP being created. 
    Even if I publish my page layout my webparts (via snippets I added) doesn't reflect in the page. I checked the preview of my page layouts and webparts appear when it is in draft mode but the moment I publish it loses all snippets (webparts). 
    I checked the html even after the page layout is published and I can see all webpart zones, my divs and snippet code there, somehow once I publish it the corresponding aspx page doesn't get updated.
    Has anybody come across this before, I'm trying this on Office 365 tenant site.
    -- The opinions expressed here represent my own and not those of anybody else --

    I have seen a similar problem on-prem when a client had distributed cache misconfigured, but as your problem is with SPO, I doubt that is the problem.
    Try creating another page layout but keep its associated content type untouched. Try adding snippets and such, publish and see what happens. If that works, then there must be something wrong with your custom content type.
    Also, when you save a change to your .html page layout, open its associated aspx page layout in SPD and see if your changes were reflected there as well. As soon as your edit a html page layout and save your changes, SharePoint should automatically update
    your aspx page layout right away.
    Eric Overfield - PixelMill - -

  • 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,

    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="">
    <Module Name="Master Pages" List="116" Url="_catalogs/masterpage" RootWebOnly="TRUE">
    <File Path="Master Pages\MyCustom.master" Url="MyCustom.master" Type="GhostableInLibrary"></File>
    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.
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog :

  • Unable to see the pageviewer in a page from pages library in a custom page layout

    <File Url="Inbox.aspx" Type="GhostableInLibrary" Level="Published" Path="myPages\Pages\Inbox.aspx" >
    <AllUsersWebPart WebPartOrder="0" WebPartZoneID="Header" ID="inboxwp1">
    <![CDATA[<WebPart xmlns:xsd="" xmlns:xsi="" xmlns="">
    <Description>Displays another Web page on this Web page. The other Web page is presented in an IFrame.</Description>
    <Width />
    <DetailLink />
    <HelpLink />
    <PartImageSmall />
    <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
    <IsIncludedFilter />
    <Assembly>Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <ContentLink xmlns="">/_layouts/15/AppPages/InboxRedirectPage.aspx</ContentLink>
    <SourceType xmlns="">URL</SourceType>
    <AllUsersWebPart WebPartOrder="0" WebPartZoneID="LeftWP" ID="wpLeft">
    <webPart xmlns="">
    <type name="myWebParts.ProjectLinks.ProjectLinks, m, Version=, Culture=neutral, PublicKeyToken=52f3214933d771f7" />
    <property name="Title" type="string">myprojectLinks</property>
    <property name="Description" type="string">My Visual Web Part</property>
    <Property Name="ContentTypeId" Value="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390076F7B5D03DD146D699D042E1C5D76EF7" />
    <Property Name="FileLeafRef" Value="Inbox.aspx" />
    <Property Name="Title" Value="Inbox" />
    <Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/myPageLayout/myPage.aspx, my custom Page Template"/>
    <Property Name="ContentType" Value="myPageCT" />
    <Property Name="_ModerationStatus" Value="3" />
    <Property Name="FileDirRef" Value="Pages" />
    <Property Name="FSObjType" Value="0" />
    I have created a custom page layout in my site collec. using VS 2012 and deployed am able to see the page in the pages lib [inbox.aspx].
    Here, I have added a page viewer web part and I want to redirect to another application page, which is already coded [inboxredirect.aspx] in my solution[its another dll - another SP solution which has appln pages and web parts
    etc - ] 
    The issue is that, i am unable to see the page viewer web part when the page is displayed. inbox.aspx is a page which is created once my custompagelayouts solution is deployed and when i navigate to this page, i am stuck . i am getting
    the  " access denied " message is displayed.  
    can anyone help why this  error is displayed?
    in my inboxredirect.aspx page i am inherting from unsecuredlayoutspagebase class, so  i dont think , access denied message should come.
    using System;
    using System.Configuration;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    namespace myproj.Layouts.AppPages
    public partial class InboxRedirectPage : UnsecuredLayoutsPageBase
    string projectName = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    string siteUrl = SPContext.Current.Web.Url;
    using (SPSite site = new SPSite(siteUrl))
    using (SPWeb web = site.OpenWeb())
    string urlProjectName =Request.UrlReferrer.ToString();
    projectName = urlProjectName.Split('/')[5];
    SPUser user = web.CurrentUser;
    if (user != null)
    above is my appln page to which i am redirecting.

    Solved it myself guys... (Well the major part)
    Got help from here...
    with some tweaks of my own..
    Still working on it because its showing SharePoint 2010 header... And I need 2013 look...

  • Multiple Page Contents Page Fields In Custom Page Layout SP2013

    I'm rather new so bare with me.  I'm trying to add multiple page content page fields with snippets to a custom page layout html file in SP2013 Designer.  Once I add the snippet and publish, I review the page and any text written
    in the last created page content box saves for both page content boxes instead of saving unique text in both.  How do you change the snippets to where they are unique snippets and won't be referenced as the same one? 
    Any help is greatly appreciated.

    ok thnaks a lot for the reply. in my form has 6 pages. so i want to copy only first page half page data ( content & fillble fileds) in to new pdf page. so is this possible ???

  • How to set tray's background image in the custom page layout?

    Hi all,
    I've developed custom page layout with custom iView tray implementation. I've applied my layout into my page and added some iViews. Those iViews are URL isolated so they are rendered as an iframe. My problem is that an iframe background containing iView content overcast my background image which I have set in my iView tray implementation. Is it possible to set transparent background for an iframe in this scenario?
    I would be grateful for helpful answers.
    Best Regards,
    Micha&#322; M.

    Hi Tamil,
    That's right, I've already used layout tag library do develop custom tray design but my problem concerns iView's isolation method . URL isolation renders iView's content in an iframe which has its own background. I've read some articles about getting transparent iframes but I'm not sure how could I achive this in SAP EP? Is it possible?
    Best Regards,
    Michal M.

  • Need some help with: implement email notification on note board within a page layout (javascript)

    Dear all,
    I have a quite specific issue in which I'm in need of some guidance and help!
    Within our SharePoint I have created a custom page layout. This is a simple page to post some content (news) and a standard Note Board is implemented.
    Every time a news item is placed, this is done by our communication departement, this page with standard layout is placed as a page in a page library. When there are no comments on that particular item/subject I found a solution to replace the standard SharePoint_no_posts-text
    by placing a contenteditor web part in the Page Layout with a reference to a textfile with some javascript in it. This works perfectely.
    The only thing left is that I want to automatically send an email to the contact (which is defined when making the news item) everytime someone posts a new comment. Here is where I need some help!
    We don't really use mysites so I was wondering if someone could tell how I could do this by for example some code (javascript) which I can implement in the Page Layout.
    Can anyone help me?
    Thanks in advance,
    Gr Matt

    Try below code:
    function sendMail() {
    var link = 'mailto:?subject=insert subject line&body=';
    var curntLoc=window.location.href;
    link +=escape(curntLoc);
    window.location.href = link;
    // window.location.href = link;
    Also check below:

  • Add metadata navigation on custom page layouts

    I was reading about showing the metadata navigation tree as my left side navigation, i found this link which describe how to implement a similar task . but when i added the following at the beginning
    of my EnterpriseWiki.aspx page using SharePoint designer :-
    <%@ Register Src="/_Controltemplates/MetadataNavTree.ascx"
    TagPrefix="SharePoint" %>
    and the following at the end :-
    <asp:Content ContentPlaceHolderID="PlaceHolderLeftNavBar" runat="server">
    <SharePoint:MetadataNav ID="Metadatanav1" runat="server" />
    The navigation is shown as follow inside my SharePoint site
    So i have the following question:-
    1. how i can show the full navigation tree.
    2. how i can add a custom redirect inside my page layout or in some control ?
    Thanks in advance for any help.

    Hi Das,
    Could your custom page layout simply include web part zones so that a specific content page such as your landing page could then be edited in the browser by a content author. The content author could then add your custom webparts as needed.
    Or did you need to bake the custom web parts directly into the page layouts so that any content page that uses the page layout always includes the custom web parts?
    If this is the case, then all you need is the proper html friendly web part controls for your two custom web parts. My suggestion to get this HTML is to create a content page that uses any page layout that includes at least one web part zone. Add your two
    custom web parts to this web part zone on this dev content page. Now save, check in and publish this content page.
    Open your site in SharePoint design and navigate to the Pages library (lists->Pages). Your dev content page should be listed there. Right click that page and "detach from page layout". What this will allow you to do is open that content page
    in sharepoint designer and obtain the html representation for your custom web parts. Copy these <webpart /> controls into your custom page layout.
    Eric Overfield - PixelMill - -

  • Group custom page layouts in one group

    down vote
    I have created page layouts based on custom content types.
    At the time of creating page from that page layout I want to show my custom page layouts in one group.
    As shown in above image, my page layouts are not shown in single group. Want to show them in single group.
    How can I achieve that?

    Thanks for reply.<br/>
    Actually I have written code to create content type programmatically.
    Following code creates CT:
    SPContentType parentCT = web.AvailableContentTypes[parentContentType];
    contentType = new SPContentType(parentCT, web.ContentTypes, dispalyNameFromResx);
    contentType.Group = groupName;
    contentType.Description = description;
    I am passing "VDE WebPlus" as contentType.Group, but the page layouts created based on CT do not shown in VDE WebPlus group.
    Page layouts get attached with content type on feature activation using this code:
    PublishingSite pubSite = new PublishingSite(site);
    string vdePageCT = "MyCT";
    SPContentType ct = site.RootWeb.ContentTypes[vdePageCT];
    if (ct != null)
    string pageLayoutName = "VdePage.aspx";
    string layoutURL = site.ServerRelativeUrl + "_catalogs/masterpage/AuthoringLayouts/" + pageLayoutName;
    PageLayout layout = pubSite.PageLayouts[layoutURL];
    layout.AssociatedContentType = ct;
    Any suggestion?

Maybe you are looking for