1 |
%system ifClause('%title%', 'Title страницы: %title%', 'У этой страницы пустой title')% |
1 |
%custom geoLink('%data getProperty(%id%,'ssylka_na_tovar')%', %msk_ssylka_na_tovar%)% |
Условие xslt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<xsl:choose> <xsl:when test="document(concat('upage://',@id))/udata/page/properties/group[@name='cenovye_svojstva']/property[@name='old_price']/value != 0"> <span class="article__price article__price--old"> <xsl:value-of select="document(concat('upage://',@id))/udata/page/properties/group[@name='cenovye_svojstva']/property[@name='old_price']/value"/> </span> <span class="article__price discount__price"> <xsl:value-of select="document(concat('upage://',@id))/udata/page/properties/group[@name='cenovye_svojstva']/property[@name='price']/value"/> </span> </xsl:when> <xsl:otherwise> <span class="article__price"> <xsl:value-of select="document(concat('upage://',@id))/udata/page/properties/group[@name='cenovye_svojstva']/property[@name='price']/value"/> </span> </xsl:otherwise> </xsl:choose> |