Using the lum_details control
Generally speaking, there are not many differences between an XML of the List interface (lum_tabularData) and a Details interface (lum_details). Among them are:
- There are no links in the XML of the Details interface, so it's not necessary to use the tag
<a>
in the XSL; - There is no list of registered items, as only one
<row />
will always arrive within a<data />
; - Despite the lum_interfaceHeader (header) control arriving in the XML, depending on the solution, it will likely not be used in the XSL;
- The tag related to the image is
<contentImage />
to be assigned an image along with the content. The tag<introductionImage />
can also be used to display an image alongside the introduction. The latter was not used in the example of the Details interface; - There is the field
<content />,
which brings the text of the content field of the registered item.
The XSL to handle the XML of the Details interface can be as follows:
Although in the Details interface only one <row / >
arrives within <data />
, the tag <xsl:for-each />
was used, as it facilitates the calling of items within the loop, already in the correct hierarchy.
Another option, if the <xsl:for-each />
tag is not used, is:
<xsl:value-of select="//control[@type='lum_details']/data/row/XXXX" />
- Where XXXX is the field name (e.g., title, content, etc… )
You can also create a variable in the XSL, within <xsl:template />
:
<xsl:variable name= "path" select="//control[@type='lum_details']/data/row" />
From the variable above, each field would be called in the following way:
<xsl:value-of select="$path/title" />
Replacing the normal tags in the above XSL with the specific Lumis tags, you have the following code:
Note that instead of <xsl:for-each />
, <lum:details />
was used, and not <lum:loop />
. The tag <lum:form />
should not be used in the XSL of the Details interface.
The layout of the Details interface applying this XSL will look like this:

To enhance this layout, simply create CSS classes and apply them in the customized XSL, in the tags <div />
.