This project is read-only.
1

Resolved

PublishingContent gets duplicated...

description

If i have two PublishingContentFieldControls on one page, the contents gets copied from one to the other.
<CS:FieldViewer id="fldContent2" FieldName="CompleteSharepointNETPageContent2" FieldDisplayName="Page Content" runat="server" TemplateName="PublishingPageContentFieldControl225" />
        <CS:FieldViewer id="fldContent" FieldName="CompleteSharepointNETPageContent" FieldDisplayName="Page Content" runat="server" TemplateName="PublishingPageContentFieldControl225" />
It seeme that the Field uses the FieldDisplayName to retrieve the field from the listitem upon editting. Or am i misinterpeting the FieldDisplayName property?

comments

tommysegoro wrote Sep 8, 2009 at 7:46 AM

It will load the same content if you're binding those controls to the same field.

FieldDisplayName is only the caption above the actual control when it's rendered on EDit Mode.

The binding to the actual field is using the FieldName property. You need to create a new column, add it to the Pages library then bind it to the FieldViewer control on the page.


Cheers,
Tommy

SanderSchutten wrote Sep 8, 2009 at 3:30 PM

But the fieldnames aren't the same.. I added the number "2" to the fieldname. I'll do another test to check my initial findings.

tommysegoro wrote Dec 3, 2009 at 4:11 AM

PLease refer to my comment.

wrote Feb 13, 2013 at 8:10 PM

wrote May 16, 2013 at 3:18 AM

wrote May 16, 2013 at 3:18 AM

wrote Jun 14, 2013 at 8:27 AM