L
L
lexstile2017-08-23 13:28:38
PHP
lexstile, 2017-08-23 13:28:38

How to withdraw additional group property in xsl template on hostcms 6?

Writing:

<xsl:value-of select="property_value[tag_name='group-header-h167']/value"/>

Does not work.
Whole code:
<xsl:choose>
      <xsl:when test="/shop/ТекущаяГруппа = 0">
        <h1>
          <xsl:value-of disable-output-escaping="yes" select="name"/>
        </h1>
      </xsl:when>
      <xsl:otherwise>
        <xsl:variable name="currentGroup" select=".//shop_group[@id=/shop/ТекущаяГруппа]" />
        <h1>
          <xsl:value-of select="property_value[tag_name='group-header-h167']/value"/>
        </h1>
      </xsl:otherwise>
    </xsl:choose>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2019-04-28
@VerbAlexVlad

/[\.\d]+/
https://ideone.com/jrRzi0

C
CCron, 2017-09-05
@lexstile

Something like this, if the group ID is previously obtained

<xsl:value-of disable-output-escaping="yes" select=".//shop_group[@id=$group]/property_value[tag_name='group-header-h167']/value"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question