common_ger.gif

Detail of the ZOPE screen display: The central common-folder for navigation images is located at the highest level parallel to the navigation templates and the ZMS content object.

Images not flowing in the content stream but building the navigation resp. decoration are usually not filed in the ZMS object hierarchy but as ZOPE image objects in the superior folder /common which is located at the templates´level.
Due to the ZOPE acquisition a referencing like src="../common/image.gif" would display the image correctly but each page would require another path to this image. This way a Browser caching would be impossible and the site display speed reduzed.
Therefore navigation images appearing at many/all pages must always be referred to 'absolutely'. For this purpose the variable ZMS_COMMON is used; it generates the path to the central /common-folder. The corresponding call is:
src="<dtml-var ZMS_COMMON>/image.gif"
This applies to the common navigation templates; for the presentation templates of special objects a modified syntax is valid:
src="<dtml-var "REQUEST.get('ZMS_COMMON','common')">/image.gif"

Erstellt von: Dr. Frank Hoffmann , erstellt am:  2008/06/27 , zuletzt geändert: 2008/07/21