CMS ブロック タグの表示

  • リリースバージョン: Xanadu
  • 更新日 2024年08月01日
  • 所要時間:2分
  • 高度なブロック作成とサイトの柔軟性に使用される CMS ブロックタグを表示します。

    始める前に

    必要なロール: content_admin または admin

    このタスクについて

    これは、<g:content_block> {{Jelly_Tags|Jelly]] として構成され、次のどちらかの方法で使用できます。
    • ブロック内にブロックを表示するには
    • レイアウト内にブロックを表示するには

    タグは、<g:content_block type="<type>" id="<sys_id>"/> の形式で表示されます。

    ブロック タグの例は、ESS ポータル サンプル サイトに含まれています。

    手順

    1. 移動先 すべて > コンテンツ管理 > Design (デザイン) > フレーム.
    2. [cms_admin_home_frame] をクリックします。
    3. コードを表示します。
      <style>
      
      DIV.cms_administration_home {
      	background: url(gray_${current_page.getURLSuffix()}.pngx) no-repeat right top;
      }
      
      </style>
      
      
      <div class="cms_administration_home">
         ${body}
      <br/>
      <!-- Would you like to pivot off of parent page instead?  try this snippet 
         <j:if test="${current_page.getParentPage().getURLSuffix()=='administration'}">
            <g:content_block type="content_block_menu" id="7afc342def002000914304167b2256ac"/>
         </j:if>
           The defaults use the page URL suffix to define sub menus
      -->
         <j:if test="${current_page.getURLSuffix()=='administration'}">
            <g:content_block type="content_block_menu" id="7afc342def002000914304167b2256ac"/>
         </j:if>
         <j:if test="${current_page.getURLSuffix()=='community_inspired'}">
            <g:requires name="ess.portal.globals.jsdbx" />
            <g:content_block type="content_block_menu" id="ccd4b8c7efb70000914304167b22566e"/>
         </j:if>
      <br/>
      </div>
    4. ページの外観を確認するために、ESS ポータル管理ページに移動します。
      たとえば、http://instance name.service-now.com/ess/administration.do です。