Answer the question
In order to leave comments, you need to log in
How to display news feed except for certain news in UMI?
Inside the news, I'm trying to display a list of news in the slider:
<!-- Слайдер новостей -->
<xsl:apply-templates select="document('udata://news/lastlist/(novosti)')" mode="right-column-news" />
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:umi="http://www.umi-cms.ru/TR/umi"
xmlns:xlink="http://www.w3.org/TR/xlink">
<xsl:template match="udata" mode="right-column-news" />
<xsl:template match="udata[items]" mode="right-column-news">
<xsl:variable name="category-name" select="document(concat('upage://', category_id))/udata/page/name" />
<section class="newsblock">
<div class="block_title">Новости</div>
<div class="news_slider">
<xsl:apply-templates select="items/item" mode="right-column-news" />
</div>
</section>
</xsl:template>
<xsl:template match="item" mode="right-column-news">
<xsl:variable name="item-info" select="document(@xlink:href)" />
<xsl:variable name="title" select="." />
<div class="news_item">
<a href="{@link}" class="inner">
<div class="thumb">
<img src="{$item-info//property[@name = 'anons_pic']/value}" alt="{$title}" />
</div>
<div class="name">
<xsl:value-of select="$title" />
</div>
</a>
</div>
</xsl:template>
</xsl:stylesheet>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question