O
O
Oleg Yakovlev2016-08-27 18:43:38
XSL & XSLT
Oleg Yakovlev, 2016-08-27 18:43:38

News feeds on UMI.CMS - what parameter should be passed to get a list of news announcements?

Hello! I'm trying to display announcements of several news feeds on UMI.CMS. This is the first time I've come across an XSLT templating engine, I'm doing it according to a practical example dev.docs.umi-cms.ru/prakticheskie_primery/lenty_no... stuck here: there is a macro

<xsl:apply-templates select="$doc-newspage/udata/items" mode="news.lents" />
but what the variable parameter should be is not clear to me. Probably something like this
<xsl:variable name="doc-newspage" select="document('udata://news/lastlist')" />

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Yakovlev, 2016-08-28
@ivanpetrov41

Displayed all the news from all feeds, you need to display the latest news in each individual feed, like this should work like this

<xsl:variable name="newslent" select="page/@id" />	
            <xsl:apply-templates select="document('udata://news/lastlist/($newslent)//30/3')/udata/items" mode="news_lents" />
but something does not work, can anyone come across?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question