You are here:   » Home » Documentation » Details » How-To » Design » Home

Charakteristic logo images for primary folders

For each primary folder ("channel") a characteristic logo image shall be displayed in the page header.

Solution: Introduction of an attribute 'logo' of type 'image' enables to maintain logo images directly in the editorial interface

Zoom (20KB)

Application of a meta-attribute of type 'image'; the attribute is dedicated to the folder objects so that the presentation template 'bequeaths' the logo object to the folders recursively.

Zoom (20KB)

Application of a meta-attribute of type 'image'; the attribute is dedicated to the folder objects so that the presentation template 'bequeaths' the logo object to the folders recursively.

Detail of the inroduction of a template standard_html_header:
...
<dtml-let docElmnt="getDocumentElement()">
 <dtml-call "REQUEST.set('reqLogo',
   docElmnt.getObjProperty('attr_logo',REQUEST))">
 <dtml-let channelElmnt="getParentByLevel(1)">
  <dtml-if "channelElmnt.getObjProperty('attr_logo',REQUEST)">
   <dtml-call "REQUEST.set('reqLogo',
    channelElmnt.getObjProperty('attr_logo',REQUEST))">
  </dtml-if>
 </dtml-let>
</dtml-let>
...

Detail of a template bodyContent_Logo:
...
<a href="<dtml-var "getParentByLevel(1).getHref2IndexHtml(REQUEST)">"
 ><img src="<dtml-var "reqLogo.getHref(REQUEST)">" border="0" alt="" 
   width="<dtml-var "reqLogo.getWidth()">" 
   height="<dtml-var "reqLogo.getHeight()">" 
></a>
...

Comment: The logo is written in the standard_html_header for further use in the REQUEST variable reqLogo. Per default the logo is got from the document element and overwritten by the channels (container objects at level 1).