I'm trying to get the filterBy category to work.
Click on blog link from main menu, you end up here (all good):
www.domain.com/blog.aspxClick on Category "Filed under: Category Name", you end up here (Not Good):
www.domain.com/?filterBy=Category Name
What I was expecting was:
www.domain.com/blog.aspx?filterBy=Category Name
Here's the code from DisplayCategories.xslt which I think is the culprit. Any ideas what I need to tweak?
Thanks.
[code]
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<msxsl:script implements-prefix="user" language="JavaScript">
function Categorylink(input,url) {
var t = new Array();
t = input.split(",");
var retval = "";
var i = 0;
for (i = 0;i <t.length;i++){
retval += "<a href=\"/" + url + t[i] +"\">" + t[i] + "</a>";
if (i < t.length-1) {
retval += ", ";
}
}
return retval;
}
</msxsl:script>
<!-- Don't change this but create a 'number' element in your -->
<!-- macro with the alias of 'numberOfItems' -->
<xsl:variable name="numberOfItems" select="/macro/numberOfItems"/>
<xsl:template match="/">
<xsl:value-of select="user:Categorylink(string($currentPage/data [@alias = 'categories']),'?filterBy=')" disable-output-escaping="yes"/>
</xsl:template>
</xsl:stylesheet>