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