O
O
Oscar Handsome2017-09-29 15:26:28
XSL & XSLT
Oscar Handsome, 2017-09-29 15:26:28

How to display title or header from macro in umi.cms - xslt?

Tasks to display the title, in the macro.
I deduce a macro, list of the directory.

<xsl:apply-templates select="document('udata://catalog/getCategoryList/1/(shop)/23//0/?extProps=header_pic,header,title,result')/udata"/>

using ?extProps= I add those fields that I want to display.
then in the template I write what I want to display:
<xsl:template match="udata[@method = 'getCategoryList']">
                        <h1 class="catalog-headers catalog-headers-menu-title">Каталог</h1>
                        x <xsl:value-of select="//property/@header"/>
                        <xsl:value-of select="result/@title" />
                        <ul >
                            <div class="arrow"></div>
                            <xsl:apply-templates select="//item" />
                        </ul>
    </xsl:template>

I removed the excess, but I can understand why calling with the help in other templates works, but not from the macro, although I added additional parameters through extProps above.
I can not understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oscar Handsome, 2017-09-29
@oscarhandsome

If you only set : before all templates
and call it inside the macro
. But is this correct?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question