Zeigen Sie CMS-Block-Tags an, die für die erweiterte Blockerstellung und die Flexibilität der Website verwendet werden.
Vorbereitungen
Erforderliche Rolle: content_admin oder admin
Warum und wann dieser Vorgang ausgeführt wird
Er wird erzeugt als
<g:content_block>{{Jelly_Tags|Jelly]] und kann auf eine der folgenden Arten verwendet werden.
- Dient zum Anzeigen eines Blocks in einem Block
- Dient zum Anzeigen eines Blocks in einem Layout
Das Tag wird im Format „<g:content_block type="<type>"id="<sys_id>"/>" angezeigt.
Ein Beispiel für das Block-Tag ist auf der Beispiel-Site des ESS-Portals enthalten.
Prozedur
-
Navigieren zu an.
-
Klicken Sie auf cms_admin_home_frame.
-
Zeigen Sie den Code an.
<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>
-
Um zu sehen, wie die Seite aussieht, navigieren Sie zur Administrationsseite des ESS-Portals.
Zum Beispiel http://instanzname.service-now.com/ess/administration.do.