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 template that chooses which macro to show based on a query string. The below code is wrong though, it still loads both macros even though one is set to invisible.
How do I only load one macro? I wanted to stick with the WorkoutID=[@id] because of macro cacheing.
<% if (String.IsNullOrEmpty(Request.QueryString["id"]))
RideHome.Visible = true;
RideDetail.Visible = false;
RideHome.Visible = false;
RideDetail.Visible = true;
<umbraco:macro ID="RideHome" Alias="RideHome" runat="server" pageIndex=[@pg] duration=[@duration]></umbraco:Macro>
<umbraco:macro ID="RideDetail" Alias="RideDetail" WorkoutID=[@id] runat="server"></umbraco:Macro>
Did you ever get anything like this working?
No, and it sucks! Let me know if you figure anything out :).
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted