質問

私は誰もがこれを行うことを知っていますが、これがMSDNに何があるかに対する実際の答えを見つけることができません...

PageにPageに定義されている場合は、のようなWebPartZoneプロパティを設定します。

<WebPartPages:WebPartZone runat="server" ID="Center" Title="loc:Center">
  ...
</WebPartPages:WebPartZone>
.

このサイトでは、これがたくさんの例を見つけることができます。

レンダリングWebPartzoneは大きい

href="https://sharepoint.stackexchange.com/questions/45802/Positioning-A-Data-Dait - Web-part-in-a-body-webpartzone">データビューWebパーツの位置情報ボディウェブパートゾーン

デフォルトのCustome WebPartはカスタムサイトページで静的になりました

私は「loc:」を仮定します。ローカライゼーションを意味します(またはおそらく位置を意味しますか?)。しかし、これは何をしますか?

役に立ちましたか?

解決

In SharePoint 2010 WebPartZone Title property is obsolete and DisplayTitle should be used instead.

Title property is declared as

[Obsolete("Use DisplayTitle instead.")]
    public string Title
    {
      get
      {
        return this.DisplayTitle;
      }
      set
      {
        this.HeaderText = value;
      }
    }

According to MSDN DisplayTitle property:

A string that contains the title text for a zone. The default is the value of the base HeaderText property.

DisplayTitle

DisplayTitle property value could be specified as a regular string or localization string. For case of localization string the following format is used: "loc:{ResourceKey}",for example "loc:Center"

In that case it value is retrieved by key from resource file Microsoft.SharePoint.WebPartPages.strings.resources embedded into assembly Microsoft.SharePoint.intl.dll

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top