Answer the question
In order to leave comments, you need to log in
UMI.CMS layout / integration / XSLT problems with the menu, is there anyone to help?
Hi all.
There is the following menu:
Code of this kind:
<!-- Header menu -->
<xsl:template match="udata[@module = 'menu']" mode="info-pages-head">
<header>
<div class="menu-bg"></div>
<div class="container">
<img src="{$template-resources}css/img/logo.png" class="logo" alt="LogoEridangroup"/>
<nav class="menu">
<ul>
<xsl:apply-templates select="item" mode="info-pages-head" />
</ul>
</nav>
<xsl:apply-templates select="document('udata://banners/fastInsert/slider_block/')/udata/banner" mode="test-banner"/>
</div>
</header>
</xsl:template>
<xsl:template match="udata[@module = 'menu']/item" mode="info-pages-head">
<li>
<a href="{@link}">
<xsl:value-of select="node()" />
</a>
<xsl:apply-templates select="items[item]" mode="info-pages-head"/>
</li>
</xsl:template>
<xsl:template match="items" mode="info-pages-head">
<ul class="sub-menu">
<a><xsl:apply-templates select="item" mode="info-pages-head-sub"/></a>
</ul>
</xsl:template>
<xsl:template match="item" mode="info-pages-head-sub">
<li>
<a href="{@link}">
<xsl:value-of select="node()" />
</a>
</li>
</xsl:template>
Answer the question
In order to leave comments, you need to log in
The last point is "USGULI" which one? To begin with, it would be nice to figure out exactly how it disappears - in the sense of not looking at how it looks, but what happens in the resulting html. Maybe it is, but something else overlaps it, for example. Or there is a link, but the text is empty. If not, I would print out the number of nodes that should be rendered, like this:
<xsl:value-of select="count(item)" />
<ul> ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question