Domanda

Ho un layout di pagina con un richhtmlfield, questo layout della pagina è quello che sto usando per i miei post sul blog qui:

http://levalencia-public.sharepoint.com/pages/2014/02/welcome-To-My-SharePoint-online-blog-aspx.aspx

Tuttavia, ogni volta che creo una pagina che voglio includere il design della casella sinistra che è sempre la stessa.

Si prega di notare che sto utilizzando un layout di pagina con HTML non ASPX (tramite Design Manager) e lo snippet generato dice molto chiaramente non modificare il contenuto all'interno.

<!--CS: Start Page Field: Page Content Snippet-->
            <!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
            <!--MS:<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
                <!--PS: Start of READ-ONLY PREVIEW (do not modify)--><div id="ctl02_label" style="display:none">Page Content</div><div id="ctl02__ControlWrapper_RichHtmlField" class="ms-rtestate-field" style="display:inline" aria-labelledby="ctl02_label"><div align="left" class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer" nowrap="nowrap"><span class="ms-formfieldlabel" nowrap="nowrap">Page Content</span></div><div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">Page Content field value. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div></div></div></div><!--PE: End of READ-ONLY PREVIEW-->
            <!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
            <!--CE: End Page Field: Page Content Snippet-->
.

È stato utile?

Soluzione

If I where you, I would try to ignore that warning and replace

<div class="ms-rtestate-field">Page Content field value. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>

with

<div class="ms-rtestate-field">Whatever you want to add to your Content editor webpart :)</div>

I see no reason why this should fail, the worst thing that can happen is that the logic for creating the page layout .aspx from the .html just ignores that you have changed tha value, the best thing that can happen is that it actually works ;)

Altri suggerimenti

If you want to use the Snippet gallery, you can put html in the html field. The field is under "Misc" in the Customization section.

This field is a single line of text, so remove any line breaks from your html.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top