class documentation
class ObjTypes(object): (source)
Provide rendering helpers for display-type dependent object output.
| Method | render |
Render image/text HTML according to the selected display type template. |
| Class Variable | dct |
Undocumented |
| Class Variable | f_select |
Undocumented |
| Class Variable | f_select |
Undocumented |
| Class Variable | f_select |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
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:str | Display type identifier (e.g. 'left', 'right', 'export'). |
| imgattr:str | Object attribute name for the image to display. |
| imghiresattr:str | Object attribute name for the hi-res image variant. |
| imgurl:str | Optional URL to link the image to. |
| imgthumb:object | @deprecated Thumbnail image object (use imghiresattr instead). |
| imgspecial:str | Special attributes for the <img> tag (e.g. usemap). |
| imgclass:str | CSS class for the <img> tag. |
| text:str | Text content to display alongside the image. |
| textalign:str | Text alignment (e.g. 'Left', 'Right', 'Center'). |
| textclass:str | CSS class for the text container. |
| REQUEST:ZPublisher.HTTPRequest | Current request object for URL generation and context. |
| Returns | |
| str | Rendered HTML fragment for the requested display type. |