University of Colorado
Release 2.5 of CoG introduced the ability for organizations to create a customized header and footer around their ESGF-CoG installation. These elements allow organizations to brand their installation with organzational logos and links.
The CoG distribution comes with a default header and footer that have been only partially customized. Action must be taken to override these defaults.
Figure 1: Screenshot of the default header. Note the placeholder for organizational logos. This is the default as of v2.11 of CoG.
Figure 2: Screenshot of the default footer. Note the placeholder for organizational links.
The default header and footer can be overridden by placing a custom temaplate with the same name under the
root level directory <COG_CONFIG_DIR>/mytemplates/. Note that the /mytemplates directory is the equivilant to the /templates in the path below.
For example, to override the template /cog/templates/cog/common/cog_header_custom.html and /cog/templates/common/cog_footer_custom.html which come with the distribution, create the two custom files:
Images and other media should be located under the directory <COG_CONFIG_DIR>/mymedia/ and referenced from within the template as "/mymedia/<image name>".
For example, the file located at /usr/local/cog/mymedia/nasa.jpeg can be loaded by any template as src="/mymedia/nasa.jpeg" (please note the first leading '/').
Figure 3: Screenshot of an example header.