高度なブロック作成とサイトの柔軟性に使用される CMS ブロックタグを表示します。
始める前に
必要なロール: content_admin または admin
このタスクについて
これは、
<g:content_block> {{Jelly_Tags|Jelly]] として構成され、次のどちらかの方法で使用できます。
- ブロック内にブロックを表示するには
- レイアウト内にブロックを表示するには
タグは、<g:content_block type="<type>" id="<sys_id>"/> の形式で表示されます。
ブロック タグの例は、ESS ポータル サンプル サイトに含まれています。
手順
-
移動先 .
-
[cms_admin_home_frame] をクリックします。
-
コードを表示します。
<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>
-
ページの外観を確認するために、ESS ポータル管理ページに移動します。
たとえば、http://instance name.service-now.com/ess/administration.do です。