Creating a custom Information Console web application : Customizing an Information Console web application : Customizing accessible files and page structure using templates : Changing a template

Changing a template

Make changes to all pages that use a particular template by changing only the template. You can add or remove lines in the template that make cascading style sheets, JavaScript files, and other resources accessible to all pages that use the template. Customize the overall structure of all pages that use a template by moving, resizing, or removing the HTML, JSP, and Jakarta Struts code describing the layout of the web pages that use the template.

For example, the innerTable of <context root>\iportal\activePortal\private
\skins\classic\templates\template.jsp specifies various HTML commands and embedded Jakarta Struts tags that populate the inner table. The banner is in the top row. The second row contains the side menu in the left column and the navigation breadcrumb and content page in the right column.

<table class="innerTable" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<% if (! "false".equalsIgnoreCase(showBanner)) { %>
<tr>
  <td colSpan="2">
    <template:get name="banner" flush="true"/>
  </td>
</tr>
<% } %>
<tr>
<% if (!"false".equalsIgnoreCase(showSideBar)) { %>
  <td vAlign="top" width="9%" height="100%" style="padding-right: 7px;">
    <table cellspacing="0" cellpadding="0" border="0">
      <tr>
        <td>
          <template:get name="sidebar" flush="true"/>
        </td>
      </tr>
    </table>
  </td>
<% } %>
  <td vAlign="top" height="100%">
    <table border="0" cellspacing="0" cellpadding="0"
      width="100%">
    <% if (!"false".equalsIgnoreCase(showBreadCrumb)) { %>
    <tr>
      <td class="allBreadcrumbs">
        <jsp:include page="/iportal/activePortal/private/common  
          /breadcrumb.jsp" flush="true" >
          <jsp:param name="fromDashboard"
            value="<%= fromDashboard %>" />
          <jsp:param name="showBanner"
            value="<%= showBanner %>" />
          <jsp:param name="showSideBar"
            value="<%= showSideBar %>" />
          <jsp:param name="showBreadCrumb"
            value="<%= showBreadCrumb %>" />
        </jsp:include>    
      </td>
    </tr>
    <% } %>
    <tr>
      <td valign="top" class="fileFolderListContent">
        <template:get name="content" flush="true"/>
     </td>
    </tr>
    </table>  
  </td>
</tr>
</table>  

The breadcrumb, or navigation trail, is a link or set of links. On a document page, the breadcrumb displays the repository and any folders and pages you access. Use any of these items as a link to return to that level. For a jobs or channels page, the breadcrumb supports direct access to a document page.


(c) Copyright Actuate Corporation 2011