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
<xsl:value-of select="umbraco.library:RenderMacroContent('<?UMBRACO_MACRO macroAlias="InsertVideo" videoNode="$videoNodeID" VideoWidth="411" VideoHeight="241"></?UMBRACO_MACRO>', number($currentPage/@id))" disable-output-escaping="yes"/>
the above code refused to work when i have this videoNode="$videoNodeID"
but if i set it with a real number to test like this: videoNode="1402"
then it would work. what am i missing ?
please help, thanks!
Hi bev0,
You need to assemble a string with the concat() function there, to get the value of $videoNodeId and not just the string '$videoNodeId':
<xsl:value-of select="umbraco.library:RenderMacroContent(concat('<?UMBRACO_MACRO macroAlias="InsertVideo" videoNode="', $videoNodeID, '" VideoWidth="411" VideoHeight="241"></?UMBRACO_MACRO>'), $currentPage/@id)" disable-output-escaping="yes"/>
/Chriztian
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
what am i missing ?
<xsl:value-of select="umbraco.library:RenderMacroContent('<?UMBRACO_MACRO macroAlias="InsertVideo" videoNode="$videoNodeID" VideoWidth="411" VideoHeight="241"></?UMBRACO_MACRO>', number($currentPage/@id))" disable-output-escaping="yes"/>
the above code refused to work when i have this videoNode="$videoNodeID"
but if i set it with a real number to test like this: videoNode="1402"
then it would work. what am i missing ?
please help, thanks!
Hi bev0,
You need to assemble a string with the concat() function there, to get the value of $videoNodeId and not just the string '$videoNodeId':
/Chriztian
is working on a reply...