Copied to clipboard

Flag this post as spam?

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


  • Laurence Gillian 600 posts 1219 karma points
    Apr 01, 2010 @ 13:35
    Laurence Gillian
    0

    RenderMacroContent & Contour

    Has anyone tried using the RenderMacroContent extension with Contour?

    This is my code, which I would of expected to have worked;

    <xsl:variable name="Macro">&lt;umbraco:Macro FormGuid=&quot;b56a1ad1-284f-4feb-b8b3-a0beb5b74b6c&quot; Alias=&quot;umbracoContour.RenderForm&quot; runat=&quot;server&quot;&gt;&lt;/umbraco:Macro&gt;</xsl:variable>
    
    <xsl:value-of select="umbraco.library:RenderMacroContent($Macro, $currentPage/@id)" disable-output-escaping="yes"/>

    Also, is it possible to change the default 'submit' value from 'submit' to a custom value?

    /Lau

  • Comment author was deleted

    Apr 01, 2010 @ 13:39

    Hi Laurence,

    It's not supported to run a usercontrol macro (wich the Contour macro is) from inside xslt.

    Changing the value is possible by setting up a dictionary item called submit

  • Laurence Gillian 600 posts 1219 karma points
    Apr 01, 2010 @ 13:46
    Laurence Gillian
    0

    Thanks Tim, I guessed this was probally the case.

    Yep and the same on the 'Submit' front, we need different text on different forms. Going to have a look around the source that was posted online a few days ago, failing that I can just update the fields values using some jQuery targeting.

    Thanks for the super fast reply though! :) Lau

     

  • Comment author was deleted

    Apr 01, 2010 @ 13:51

    Yup currently it's set globally, updating with some JQuery is a possible workaround

    Cheers,
    Tim

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies