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.

Functions

Functions are applied to the value of the field. It can be also applied to left and right contents. In this case, "Left" or "Right" should be added to the function name and the optional attributes.

Property Data type Default Plus Mvc
func = makeDateFormat; None   Yes No
func = makeEmailLink; None   Yes No
func = makeExtLink; None   Yes No
func = makeImage; None   Yes No
func = makeItemLink; None   Yes No
func = makeLink; None   Yes Yes
func = makeNewWindowLink; None   Yes No
func = makeUrlLink; None   Yes No
func = makeXmlLabel; None   Yes No

func = makeDateFormat;

Property

func = makeDateFormat;

Data type

None

Description

This function generates a format for a unix time stamp date.

Optional attributes can be added:

  • format = string; The string should be a format that makes sense for the php-function strftime().

func = makeImage;

Property

func = makeImage;

Data type

None

Description

This function builds an IMG tag where the field value is the name of the image file.

Additional parameter can be used.

  • folder = string; (string will be the folder where the file should be).
  • width = integer; (width of the image in pixels).
  • height = integer; (height of the image in pixels).
  • alt = string; (string will be the "alt" attribute of the image).
  • fieldAlt = field_name; (the "alt" attribute will be the value of the fieldname for the current record).

func = makeXmlLabel;

Property

func = makeXmlLabel;

Data type

None

Description

This function generates the label from a xml language file. It works with the following parameter:

  • xmlLabel = string; the string is the label definition. For example, assume that the value comes from a selectorbox whose label definition is in the file locallang_db.xml in the extension "my_ext". Assume also that the field is "my_field". Then, to obtain the label one has to write
xmlLabel = LLL:EXT:my_ext/locallang_db.xml:tx_myext.my_field.I.;