Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a case, where i need to use some multi node treepickers several times on the same page, so i would like to reuse my xslt with the alias of the different pickers as a macro parameter...
So in theory i want to do this:
<xsl:variable name="thepicker" select="/macro/pickeralias" /> <xsl:for-each select="$currentPage/$thepicker/MultiNodePicker/nodeId"> <xsl:variable name="node" select="umbraco.library:GetXmlNodeById(.)" /> <xsl:value-of select="$node/@nodeName" /></xsl:for-each>
But this doenst work, because you can't inject a variable into a "node-set"...So how to go about this?
Hi Claus,
You can use the name() function for that:
name()
<xsl:for-each select="$currentPage/*[name() = $thepicker]/MultiNodePicker/nodeId">
/Chriztian
Heh... ehhh... thats... ehhh.... F...... AWESOME!!!!!!!!
Could it be any simpler?!?
Another beer for Mr. Xslteinmeier
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using mntp with macro parameter
I have a case, where i need to use some multi node treepickers several times on the same page, so i would like to reuse my xslt with the alias of the different pickers as a macro parameter...
So in theory i want to do this:
But this doenst work, because you can't inject a variable into a "node-set"...
So how to go about this?
Hi Claus,
You can use the
name()
function for that:/Chriztian
Heh... ehhh... thats... ehhh.... F...... AWESOME!!!!!!!!
Could it be any simpler?!?
Another beer for Mr. Xslteinmeier
is working on a reply...