module documentation

_objtypes.py - ZMS Object Type Definitions and Meta-Class Registration

This module defines the ObjTypes class, which provides rendering helpers for display-type dependent object output in the ZMS content management system. It includes methods for rendering images and text according to specified display types, as well as a collection of PageTemplateFile instances for different input and display type templates. The ObjTypes class serves as a central utility for content objects to generate HTML output based on their display type configuration.

License: GNU General Public License v2 or later, Organization: ZMS Publishing

Class ObjTypes Provide rendering helpers for display-type dependent object output.
Function getHref2Zoom Return the URL used for the zoom target of an image.
def getHref2Zoom(self, img, REQUEST): (source) ΒΆ

Return the URL used for the zoom target of an image.

If a custom hook getCustomHref2Zoom exists it is used; otherwise the image's own href is returned.