I got this macro who's collecting articles (nodes) a hidden part of the site called "Article_archives". The articles are tagged with one or more categories (i.e 'baking, 'exercise', etc).
To get the articles I used to use the code below, and I cant figure out how to upgrade it to the new schema :(
Problems with migrating XSLT to new Schema
I got this macro who's collecting articles (nodes) a hidden part of the site called "Article_archives". The articles are tagged with one or more categories (i.e 'baking, 'exercise', etc).
To get the articles I used to use the code below, and I cant figure out how to upgrade it to the new schema :(
<xsl:template match="/"> <xsl:variable name="listcategory" select="umbraco.library:Split($currentPage/data[@alias='listcategory'],',')"/> <xsl:variable name="listname" select="@nodeName"/> <xsl:if test="$listcategory/value !=''"> <xsl:for-each select="$currentPage/ancestor-or-self::node [@level = 1]//node [umbraco.library:HasAccess(@id, @path) = true()] [umbraco.library:Split(data[@alias='Category'],',')/value = $listcategory/value]">Any help is highly appreciated!
Cheers
Eic,
see http://our.umbraco.org/projects/developer-tools/xsltupdater-for-umbraco and http://our.umbraco.org/wiki/reference/xslt/45-xml-schema
Regards
Ismail
Not tested, but try this: (just replaced /data [@alias='xx'] with /xx and /node with /* [@isDoc]
converted by http://blackpoint.dk/umbraco-workbench/tools/convert-xml-schema-to-45-.aspx
Petr
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.