How to add custom column into a Page Layout in SharePoint

Advertisement
We can add custom columns easily by using "listItemProperty"

->Navigate to SharePoint Designer

->Open your Page Layout

->Drag and drop "ListItemProperty" to desired location in the toolbox, server controls.

we have something like the following:

<SharePointWebControls:ListItemProperty runat="server" id="ListItemProperty1"/>

In this we can add "Property" value using desired property

Example:

1) <SharePointWebControls:ListItemProperty runat="server" Property="DocumentUrl" id="ListItemPropertycustom1"/>

2) <SharePointWebControls:ListItemProperty runat="server" Property="Assoociated_x0020_Document_x003a_Link_x0020_Title" id="ListItemPropertycustom2"/>

Note:

->If we have spaces in a custom field use "_0x0020_"

->We are calling secondary lookup fields, then the colon is represented by "_x003a_"

Reference: List of Custom column field IDs
Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

1 comments:

  1. Thanks for the How-To. What is the functional purpose of adding a property to a page layout? Would it be used in search or some other content roll up?

    ReplyDelete