Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 467 posts 875 karma points c-trib
    Jul 28, 2010 @ 01:17
    Murray Roke
    0

    Evaluate XSLT macro at PreRender

    Hi All,

    I'd like to evaluate an XSLT macro at Pre Render is this possible?

    Reason: content is published on a click event after Page_Load, and before Page_PreRender. And I want the newly created content to show in the output immediately (without a hacky redirect).

    Cheers.

    Murray.

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Jul 28, 2010 @ 14:02
    Ismail Mayat
    0

    Murray,

    In a template you could wrap the macro call with inline c# eg

    <%if(SomeTest()){%>
    <umbraco:Macro Alias="Mymacro" runat="server"></umbraco:Macro>
    <%}%>

    Not sure if that is what you are after exactly?

    Regards

     

    Ismail

  • Murray Roke 467 posts 875 karma points c-trib
    Jul 29, 2010 @ 03:29
    Murray Roke
    0

    @Ismail, I don't think so, my issue is it generates it's output before the click in the page lifecycle, which means the listing macro will have one less element in it than if the html was generated after the click in the page lifecyle.

    I expect the answer is simply "No" or at least "It's far simpler to convert the xslt to usercontrol where you can control when it is databound" (which is what we've done in our current case, but it would be nice to know if there is a feasible way to have xslt bind after click events.)

  • 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