class documentation

class ObjTypes(object): (source)

View In Hierarchy

Provide rendering helpers for display-type dependent object output.

Method renderDisplaytype Render image/text HTML according to the selected display type template.
Class Variable dctDisplaytype Undocumented
Class Variable f_selectFile Undocumented
Class Variable f_selectImage Undocumented
Class Variable f_selectRichtext Undocumented
Class Variable zmi_displaytype_bottom Undocumented
Class Variable zmi_displaytype_export Undocumented
Class Variable zmi_displaytype_left Undocumented
Class Variable zmi_displaytype_right Undocumented
Class Variable zmi_displaytype_top Undocumented
Class Variable zmi_input_autocomplete Undocumented
Class Variable zmi_input_color Undocumented
Class Variable zmi_input_multiselect Undocumented
Class Variable zmi_input_select Undocumented
Class Variable zmi_select_richtext_standard Undocumented
Class Variable zmi_select_richtext_wysiwyg Undocumented
def renderDisplaytype(self, displaytype='', imgattr='', imghiresattr='', imgurl='', imgthumb=None, imgspecial='', imgclass='', text='', textalign='', textclass='', REQUEST=None): (source)

Render image/text HTML according to the selected display type template.

The method resolves image and optional hi-res image variants, prepares the final image markup (including zoom links where configured), and delegates layout rendering to the matching zmi_displaytype_* template.

Parameters
displaytype:strDisplay type identifier (e.g. 'left', 'right', 'export').
imgattr:strObject attribute name for the image to display.
imghiresattr:strObject attribute name for the hi-res image variant.
imgurl:strOptional URL to link the image to.
imgthumb:object@deprecated Thumbnail image object (use imghiresattr instead).
imgspecial:strSpecial attributes for the <img> tag (e.g. usemap).
imgclass:strCSS class for the <img> tag.
text:strText content to display alongside the image.
textalign:strText alignment (e.g. 'Left', 'Right', 'Center').
textclass:strCSS class for the text container.
REQUEST:ZPublisher.HTTPRequestCurrent request object for URL generation and context.
Returns
strRendered HTML fragment for the requested display type.
dctDisplaytype: dict[str, str] = (source)

Undocumented

f_selectFile = (source)

Undocumented

f_selectImage = (source)

Undocumented

f_selectRichtext = (source)

Undocumented

zmi_displaytype_bottom = (source)

Undocumented

zmi_displaytype_export = (source)

Undocumented

zmi_displaytype_left = (source)

Undocumented

zmi_displaytype_right = (source)

Undocumented

zmi_displaytype_top = (source)

Undocumented

zmi_input_autocomplete = (source)

Undocumented

zmi_input_color = (source)

Undocumented

zmi_input_multiselect = (source)

Undocumented

zmi_input_select = (source)

Undocumented

zmi_select_richtext_standard = (source)

Undocumented

zmi_select_richtext_wysiwyg = (source)

Undocumented