0

特定のページにのみSharePointフィールドをフッターとして表示する必要があるため、マスターページの変更は除外され、古いHTMLでは成功しませんでした。

私が表示しようとしているのは、次のコードです。

<SharePoint:DeveloperDashboard runat="server"/>
<div class="s4-notdlg" style="clear:both; background-color:orange; padding:10px">
<SharePoint:CreatedModifiedInfo ControlMode="Display" runat="server">
<CustomTemplate>        

<br>Page Contact: <SharePoint:FormField FieldName="Page Contact" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
        <br>Last modified on <SharePoint:FieldValue FieldName="Modified" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
        by <SharePoint:FormField FieldName="Author" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
        <br>Comments: <SharePoint:FormField FieldName="Check In Comment" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
        </CustomTemplate>           
        </SharePoint:CreatedModifiedInfo>
        </div>

詳細モードでページを編集する場合、コードをどこに配置しても、サイトの定義が壊れます。このコードをページに挿入するのに適した場所はありますか?または、サイト定義を変更する必要がありますか。

4

1 に答える 1

0

サイトの定義を破ることは、あなたが考えていることではないかもしれません. サイトでカスタマイズされたものを識別する方法として、そのページはもはや「デフォルト」の 1 つではないと言っているだけです。

それらのページで行うすべての編集はそのようなものであるため、そのメッセージを取得しても問題ありません. 必要に応じて「サイト定義にリセット」することもできますが、これは通常、私の経験ではあまり安定していません。

于 2011-11-09T20:44:08.337 に答える