I have added a layout and some renderings to a page item, in the Shared Layout.
The raw value of the Renderings
field shows this:
<?xml version="1.0" encoding="UTF-8"?>
<r xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<d id="{FE5D7FDF-89C0-4D99-9AA3-B5FBD009C9F3}" l="{71FA8F43-9376-4490-96C4-63678907811E}">
<r ds="{14EAF6E4-3AB7-417D-A366-A45C8329ABC0}" id="{5379CD21-965C-4D8D-988B-B8DAA8D6D1C4}" par="" ph="main" uid="{34387617-A967-4B6F-A7B6-861D5815D6E5}" />
<r ds="" id="{0CB41E0D-68B8-4096-B049-1F96ACF60847}" par="" ph="main" uid="{C708E7FA-184B-4DFC-B02B-787DF2C291F2}" />
</d>
</r>
The second rendering does not have any datasource. This XML is comprehensive as it has the IDs of the renderings and the datasources.
After I added the datasource to the second rendering, the raw value changed to this.
<?xml version="1.0" encoding="UTF-8"?>
<r xmlns:p="p" xmlns:s="s" p:p="1">
<d id="{FE5D7FDF-89C0-4D99-9AA3-B5FBD009C9F3}">
<r uid="{59512512-E913-4C0A-9D1B-1C13CE15904B}" s:ds="{51853DB9-6A5A-40BD-BB9B-8945E18691A5}" />
</d>
</r>
I have checked other page items which have many renderings but the raw xml value only has one entry.
- Why does the rendering value change.
- I'm expecting a field, where Sitecore will check its value for the presentation details to render the page. But from the above scenario, the details seem incomplete. How is the page still rendering correctly even with incomplete XML in the field value.
- What is the ID in the
uid
parameter. I could not find the ID in theItems
database table or in the content tree.