Hiding the FarCry tray on the front end

Came across this nice tip a little while ago from AJ Mercer on the farcry-dev group.

It hides the FarCry “tray” which is visible on the front end of your website to users who are logged in to FarCry. I happen to have a use case for this at the moment so it was good timing.

Simply put this code snippet in any template there you don’t want the tray appearing. Personally I put this in /config/_serverSpecificRequestScope.cfm so it’s picked up on every page request as I never wanted it to appear.

<cfset request.mode.bAdmin = false>

Thanks AJ :)

Post a Comment or Leave a Trackback

2 Comments

  1. July 28, 2009 at 1:24 am | Permalink

    Hi Michael, how do I get ahold of you? Your “about” link doesn’t work ;-) Here’s my bio: http://andrewchenblog.com/about/

    Andrew

  2. July 28, 2009 at 1:31 am | Permalink

    Sorry about the “about” link, only works on the far right hand side due to a template issue with the css. I need to fix that :(

    I’ll contact you directly.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*