Copied to clipboard

Flag this post as spam?

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


  • Sherry Ann Hernandez 320 posts 344 karma points
    Jun 26, 2011 @ 16:18
    Sherry Ann Hernandez
    0

    Use request in the event handler

    Hi,

    Is it possible to use umbraco.presentation.UmbracoContext.Current.Request["app"].ToLower() == "content" in the event handler?

    because i'm trying to figure out how to determine which section i am currently browsing.

    Thanks,
    Sherry

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jun 27, 2011 @ 12:58
    Lee Kelleher
    0

    Hi Sherry,

    Which event handler are you hooking into?

    As there might be a better way to handle this - checking a node's document type, etc? As events could also be triggered from outside the back-office (e.g. "Publish at" documents).

    Cheers, Lee.

  • 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