I am busy trying to solve issues i am having with the XSLT's for Blog4Umbraco some of them are rendering but it seems that the xpaths are not fetching data. For example I have the archive list set to:
The div, and the UL are written, but no LI's are being written. I do have one blog post published, but it seems that the default XSLT isn't picking up the node.
XSLT Issues with Blog4Umbraco
I am busy trying to solve issues i am having with the XSLT's for Blog4Umbraco some of them are rendering but it seems that the xpaths are not fetching data. For example I have the archive list set to:
The div, and the UL are written, but no LI's are being written. I do have one blog post published, but it seems that the default XSLT isn't picking up the node.
Umbraco Version: 4.5.0
Blog4Umbraco Version: 2.0.26
Forgot to add...
This is happening to several XSLT's. Others are not rendering and displaying errors.
Hi Kyle,
Are you running Umbraco 4.0.x or 4.5?
If you're running 4.5 the XML schema has changed as per this wiki article so your XSLT should be as follows:
<div class="widget">
<ul class="archive">
<xsl:for-each select="$currentPage/ancestor-or-self::Blog/DateFolder">
<xsl:sort select="@nodeName" data-type="number" order="descending" />
<xsl:for-each select="./DateFolder">
<xsl:sort select="@nodeName" data-type="number" order="descending" />
<li class="month">
<xsl:variable name="monthname" select="umbraco.library:FormatDateTime(concat(./../@nodeName,'-',@nodeName,'-11T10:24:46'),'MMMM yyyy')" />
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="$monthname"/></a>
<span>(<xsl:value-of select="count(.//BlogPost)"/>)</span>
</li>
</xsl:for-each>
</xsl:for-each>
</ul>
</div>
Best,
Benjamin
I have installed 4.5 yes. That helped a lot. Do you have any insights in to the others? Is this documented somewhere?
Hi Kyle,
I've just updated my post above, apologies. The wiki article describing the new XML schema can be found here.
Best,
Benjamin
is working on a reply...