D
D
Dmitry2017-03-23 23:47:02
XSL & XSLT
Dmitry, 2017-03-23 23:47:02

How to display additional properties in XSL in HostCMS 6?

I have 3 additional properties for the information system, 1 is a multi-line field, the other is just a string, and the third is a file (picture) how to display them in an xls template? xls tag. images, address, telephone.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2018-11-04
@Roman-Fov

Because images, not image, it was meant to be a property with multiple values.

<xsl:apply-templates select="property_value[tag_name='images']/file"/>
<xsl:template match="property_value[tag_name='images']/file">
    <xsl:value-of select="."/>
</xsl:template>

For others:
<xsl:value-of select="property_value[tag_name='adress']/value"/>
<xsl:value-of select="property_value[tag_name='telefon']/value"/>

+Here are the main points:
https://www.hostcms.ru/documentation/modules/prope...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question