2012-02-09 13 views
2

私はSP2010サイトマスターテンプレートを作成しています。サイト設定 - >タイトル、説明、およびアイコンからの情報をヘッダー領域に表示したいと思います。私はロゴと一緒にサイト全体に表示するタイトルを得ることができますが、例として図書館を言うときに説明が変わります。SharePoint 2010に動的な説明を追加する方法ロゴ/タイトル領域

私は試してみて、これを使用する場合:

<div class="s4-pagedescription" tabindex="0" > 
    <asp:ContentPlaceHolder id="PlaceHolderPageDescription" runat="server"> </asp:ContentPlaceHolder> 
</div> 

を、私は、リストまたはサブセクションに向かうとき...それは変わる...私が決定するサイトの説明であることをサイトの設定で見つかった説明をしたいです。

<table class="s4-titletable" cellspacing="0"> 
    <tbody> 
    <tr> 
     <td class="s4-titlelogo"><SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitleGraphic"> 
      <SharePoint:SiteLogoImage name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/Style Library/fsimages/logo.png" runat="server"/> 
     </SharePoint:SPLinkButton></td> 
     <td class="s4-titletext"><h1> 
      <!-- This is giving me the Title across the site no problem ---> 
      <asp:SiteMapPath runat="server" id="SiteMapPath1"></asp:SiteMapPath> 
     </h1> 
     <br/> 

     <!-- HOW DO I GET THIS DESCRPTION DYNAMICALLY? --> 

     <h2>(replace this with code to get description)</h2></td> 
     <td class="s4-socialdata-notif"><SharePoint:DelegateControl ControlId="GlobalSiteLink3" Scope="Farm" runat="server"/></td> 
    </tr> 
    </tbody> 
</table> 

ありがとうございます!

答えて

0

マスターページで動作するかどうかはわかりませんが、ページレイアウトでは「ProjectProperty」タグを使用していました。

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderMain" runat="server"> 
<h1> 
     Welcome to site: <SharePoint:ProjectProperty runat="server" Property="Title"> </SharePoint:ProjectProperty>! 
</h1> 
</asp:Content> 

私は

あなたが「説明」と「タイトル」を置き換えることができると思います
関連する問題