Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Display information for datatypes

Make it possible for templates to find information to the display of a datatype in a specific viewmode. E.g to group multiple input elements in a fieldset tag.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.5/datatype_display_info.txt

*Title: Display information for datatypes

*Incentive:
Make it possible for templates to find information to the
display of a datatype in a specific viewmode.
E.g to group multiple input elements in a fieldset tag.

*Documentation:
Two new attributes are available on an object attribute:
- display_info - Returns info for the object
- class_display_info - Returns info for the class (same as display_info on class)

One new attribute is available on a class attribute:
- display_info - Returns info for the class

Object display info structure:
- edit - Settings related to content edit mode
  - grouped_input - Whether to group all input fields when displaying them
- view - Settings related to content view mode
- collection - Settings related to information collection mode
  - grouped_input - Whether to group all input fields when displaying them
- result - Settings related to information result mode

Class display info structure:
- edit - Settings related to content edit mode
  - grouped_input - Whether to group all input fields when displaying them
- view - Settings related to content view mode

Example template usage:
{section show=$attribute.display_info.edit.grouped_input}
<fieldset>
{section-else}
<label>Name</label>
{/section}

INI settings:
datatype.ini controls the default behaviour of the returned information.
EditSettings:
- GroupedInput - Contains a list of datatypes that will have its input grouped
CollectionSettings:
- GroupedInput - Contains a list of datatypes that will have its input grouped
ClassEditSettings:
- GroupedInput - Contains a list of datatypes that will have its input grouped

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors