DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Bool

Bool form element

In a form only a checkbox is shown, of course, but for outputting this might be translated to more informative graphics.

aMapping

This is a very powerful array setting that allows you to translate real database-saved values to nicely formatted outputs (not for the form, though). Now this sound as if you don't want to do that on your own but for limited amount of options (like with Bool or Enum) it makes sense to configure that manually.

The only thing you need to do is to configure the value you want to translate (map, thus the name) as array key and the output it should become (be mapped on) as the configuration value. Pretty easy example: Translate a boolean true to a green tick image and a boolean false to a red cross. This is also the default value.

'aMapping' => array(
            true => '<img src="###EXT:mh_omsqlio/Resources/Image/bool_true.png###" alt="True" />',
            false => '<div class="icon bool_false" title="False"></div>'
    )

As you can see, there is a marker available (###EXT:path/from/extension/folder###) even though it is not used at the moment as the default setting relies for both, true and false, on the class-version.