6.3.1. Overriding application templates

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

Groovy templates can be overriden thanks to extension mechanism. Here are steps to override a template of Organization portlet. The source code used in this section is provided here for downloading.

  1. Take a look at $PLATFORM_TOMCAT_HOME/webapps/eXoResources/groovy/organization/webui/component/UIOrganizationPortlet.gtmpl. This file contains the template definitions of the Organization portlet.

  2. Create a UIOrganizationPortlet.gtmpl file and put it in custom-extension.war!/groovy/organization/webui/component.

  3. Copy the existing content from UIOrganizationPortlet.gtmpl of Step 1 into your custom-extension.war!/groovy/organization/webui/component/UIOrganizationPortlet.gtmpl, then modify your file, for example change the color of text and background on the toolbar.

  4. Refresh the browser if you are running eXo Platform at the developer mode. You will see your modification take effect on the Organization portlet.

    Note

    If you are not running eXo Platform in the developer mode, you will have to restart the server.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus