Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bev0 39 posts 59 karma points
    Aug 09, 2010 @ 23:41
    bev0
    0

    what am i missing ?

    <xsl:value-of select="umbraco.library:RenderMacroContent('&lt;?UMBRACO_MACRO macroAlias=&quot;InsertVideo&quot; videoNode=&quot;$videoNodeID&quot; VideoWidth=&quot;411&quot; VideoHeight=&quot;241&quot;&gt;&lt;/?UMBRACO_MACRO&gt;', number($currentPage/@id))" disable-output-escaping="yes"/>

    the above code refused to work when i have this videoNode=&quot;$videoNodeID&quot;

    but if i set it with a real number to test like this: videoNode=&quot;1402&quot;

    then it would work.  what am i missing ?

    please help, thanks!

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 10, 2010 @ 00:30
    Chriztian Steinmeier
    1

    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('&lt;?UMBRACO_MACRO macroAlias=&quot;InsertVideo&quot; videoNode=&quot;', $videoNodeID, '&quot; VideoWidth=&quot;411&quot; VideoHeight=&quot;241&quot;&gt;&lt;/?UMBRACO_MACRO&gt;'), $currentPage/@id)" disable-output-escaping="yes"/>

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft