Customize the UI for the GWC / Customization tutorial |
Add a logo to the application header and add some text to the application footer.
... <THEME> <SNIPPET Id="Header">$(application.path)/../tpl/Header.xhtml</SNIPPET> </THEME> ...
... <PATH Id="SetHtml5" Type="APPSERVER" ExtensionFilter="$(res.web.extensions);.less;.svg" DVMFallbackAllowed="FALSE"> $(application.path)/../web;$(application.path)/../res/photo; $(res.path.pic);$(res.path.tpl.html5);$(res.path.tpl.common)</PATH> ...
<h1 class='gHeaderTitle' data-g-layout-item='"row": 0, "column": 0, "isXSpacer": true' data-g-layout-policy='"minWidth": 0' >Genero HTML5 Web Client</h1>
<h1 class='gHeaderTitle' data-g-layout-item='"row": 0, "column": 0, "isXSpacer": true' data-g-layout-policy='"minWidth": 0' ><img alt="My Company logo" style="height:48px" gwc:attributes="src resourceuri('card-logo.png','SetHtml5')"/></h1>
After this modification, the application text header is replaced by an image. The image height is specified to set a place holder for the image. The image url is retrieved with template function resourceuri from the resource identified by <PATH Id="SetHtml5" ...>
... <THEME> <SNIPPET Id="Footer">$(application.path)/../tpl/Footer.xhtml</SNIPPET> </THEME> ...
<!-- Change your footer content -->with a link that starts an email message to a specified email address.
<p>For any issues or comments please contact <a href="mailto:support@mycompany.com">support@mycompany.com</a></p>