The more my site contributors work with Farcry, the more I am realizing that
they simply cannot keep track of what mode they're in. It's not a fault of
Farcry, they simply don't pay attention to details.

When I say mode, I mean one of the modes a Farcry editor can be in when
they're viewing the site:

1. Draft mode & Cache Flush mode
2. Draft mode
3. Cache Flush mode
4. Cache View Mode (IE Public view)
5. Design mode

I find it helps (albeit only a little) if the editor can see the mode (if
any) without having to check the menu in the upper left corner of their
screen. So here's what I use in my header to give them that visual clue I'm
hoping will help.

<!--- Insert this after the body tag in your header --->
<cfif isDefined("request.mode.showdraft") AND request.mode.showdraft eq 1
AND isDefined("request.mode.flushcache") AND request.mode.flushcache eq 1>
        <cfoutput>
        <table border="0" width="100%">
        <tr>
            <td valign="top" bgcolor="##CC0000">
                        <span style="font:bold 14px courier
new,arial;color:##FFFFFF">&nbsp;&nbsp;&nbsp;Farcry: Draft Mode &amp; Cache
Flush Mode</span>
                </td>
        </tr>
    </table>
        </cfoutput>
<cfelseif isDefined("request.mode.showdraft") AND request.mode.showdraft eq
1>
        <cfoutput>
        <table border="0" width="100%">
        <tr>
            <td valign="top" bgcolor="##FFFF00">
                        <span style="font:bold 14px courier
new,arial;color:##ff0000">&nbsp;&nbsp;&nbsp;Farcry: Draft Mode</span>
                </td>
        </tr>
    </table>
        </cfoutput>
<cfelseif isDefined("request.mode.flushcache") AND request.mode.flushcache
eq 1>
        <cfoutput>
        <table border="0" width="100%">
        <tr>
            <td valign="top" bgcolor="##00CC00">
                        <span style="font:bold 14px courier
new,arial;color:##2a00a4">&nbsp;&nbsp;&nbsp;Farcry: Cache Flush Mode</span>
                </td>
        </tr>
    </table>
        </cfoutput>
</cfif>

I'm hoping this will reduce phone calls to my desk as well as helping to
prevent editors(who are in Cache Flush mode and don't realize it) from
cruising around the site aimlessly blowing away all our caches :(

Use this in good health and by all means, if you come up with something
better, pleas let me know.

~tom


---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to