Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

HELP - Issue with intermittent Images rendering at “RichImageField”.

$
0
0

In one of our SharePoint 2013 publishing site we have few page layouts with RichImageField.We are noticing an issue that seems to be specific field controls in page layouts. Basically, images within these controls will appear/disappear on refresh. In particular it seems to almost always disappear after checking in the page. After a few refreshes it will usually come back (but can also disappear again).

In the page source, the image tag looks like this when rendered blank:


<div id="ctl00_PlaceHolderMain_ctl02_label" style='display:none'>Image1</div><div id="ctl00_PlaceHolderMain_ctl02__ControlWrapper_RichImageField" style="display:inline" aria-labelledby="ctl00_PlaceHolderMain_ctl02_label"><div>&#160;</div></div>

 

When the page displays sccessfully it looks like this:


<div id="ctl00_PlaceHolderMain_ctl02_label" style='display:none'>Image1</div><div id="ctl00_PlaceHolderMain_ctl02__ControlWrapper_RichImageField" style="display:inline" aria-labelledby="ctl00_PlaceHolderMain_ctl02_label"><div><img alt="" src="/PublishingImages/photography/lifestyle/375px/man-server-room.png" style="BORDER&#58;0px solid;" /></div></div>

Below listed RichImageField along with the RichHtmlField definition in our page layout.

<div class="pageContent">
 <h1>&nbsp;<SharePointWebControls:TextField FieldName="Title" runat="server"></SharePointWebControls:TextField></h1>
 <div class="columnContainer">
 <PublishingWebControls:RichImageField FieldName="Image1" runat="server"></PublishingWebControls:RichImageField>
 </div>
 <div class="columnContainer">
 <PublishingWebControls:RichHtmlField FieldName="ContentMain1" runat="server"></PublishingWebControls:RichHtmlField>
 </div>
 <div class="pageFooter">
 <PublishingWebControls:RichHtmlField FieldName="PageFooter" runat="server"></PublishingWebControls:RichHtmlField>
 </div>
</div>

Note: We did not placed the above section inside the <PublishingWebControls:EditModePanel...>

//

Saravanan.T



Viewing all articles
Browse latest Browse all 9368

Trending Articles