July 14, 2009

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 :)

© Michael Sharman 2017