Start page
Start page

Start page / Template development / Template syntax / System objects / #item

#itemAvailable from FirstSpirit Version 5.0

Important This object is only available in conjunction with the form definitions of the FS_DATASET and FS_LIST input components as well as in conjunction with the multi-value input components that include additional content via CMS_INCLUDE_OPTIONS.

With the help of the #item system object, in input components that can process additional objects such as store elements, access is available to values of the input components of these objects. For instance, in an FS_LIST component that contains multiple sections, the listing of individual sections in an overview can be configured so that the header of the section element is used as a display name. If the object is a data record, access is also available to information in additional tables via foreign key relationships.

The #item object in this case represents an element, e.g. a section, link or data record, that is aggregated or associated in the aforementioned input components.

Individual input components of the element are accessed using the format

#item.st_headline

where st_headline corresponds to the name (name attribute from the form definition) of an input component.

If a foreign key relationship of a table row is to be used, the column names of the particular tables need to be specified:

#item.product_Properties_Type.Name

In this case, product_Properties_Type corresponds to the column of the table from which the data record represented by #item originates. Name corresponds to the column to be used from the foreign table.

© 2005 - 2015 e-Spirit AG | All rights reserved. | Last change: 2013-12-09