Copied to clipboard

Flag this post as spam?

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


  • Max Mumford 266 posts 293 karma points
    Sep 13, 2011 @ 11:33
    Max Mumford
    0

    Running macro according to requested page's path

    Hi all,

    I have created a macro that redirects the user to a change password page according to whether or not a property on their member node is set to true. I then inserted this macro into the top most template so it is executed on every page.

    The problem is, The user still needs to be able to use the logout page, so I need to tell it not to run if it is on the "/members/logout" page.

    I have tried the following but all have failed:

    • Using the "HttpContext.Current.Request.Url.AbsolutePath" variable to check for the "/members/login" page
    • Adding the macro into a content placeholder's default content on the top most master page and clearing this default content by manually inserting content into the placeholder on the logout page

    What is the best way to achieve this?

    Thanks

    Max.

  • Max Mumford 266 posts 293 karma points
    Sep 14, 2011 @ 16:23
    Max Mumford
    0

    bump

  • Max Mumford 266 posts 293 karma points
    Sep 21, 2011 @ 16:42
    Max Mumford
    0

    bumpity bump

Please Sign in or register to post replies

Write your reply to:

Draft