The following snippets will help you add different types of SharePoint fields into your page layout.
Text
field
<div xmlns="">
<!--
<!--
<!--
<!--
<!--
<!--
</div>
Note
field
<div xmlns="">
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
</div>
Taxonomy
field
<div xmlns="">
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
</div>
DateTime
field
<div xmlns="">
<!--
<!--
<!--
<!--
<!--
<!--
<div align="left" class="ms-formfieldcontainer">
<div class="ms-formfieldlabelcontainer" nowrap="nowrap">
<span class="ms-formfieldlabel" nowrap="nowrap">Review Date</span>
</div><div class="ms-formfieldvaluecontainer">20/05/2013</div></div>
<!--
<!--
<!--
<!--
</div>
RichHtml
field
<div xmlns="">
<!--
<!--
<!--
<!--
<!--
</div>
Image
field
<div xmlns="">
<!--
<!--
<!--
<!--
<!--
</div>
The post Sharepoint fields in page layout appeared first on Tech Musings - Anooj nair.