Sure Bid,

That looks fine to me.  That's exactly the way I think layouts should be
used.  You have a variable that says something about the user, or about the
content, and fbx_layouts makes layout decisions based on that information.

Having fun?
LeeBB 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Lee,

What about a situation like this:

I have a circuit named "Admin" which houses all actions related to the 
admin of the site.

I would like to inlcude a list of links in the layout for this circuit 
that are only visible *once* the user is logged in. 

In this situation, is the code below an acceptable way to do this?

<cflock timeout="10" throwontimeout="No" type="EXCLUSIVE" 
scope="SESSION">

<cfif NOT isDefined( 'Session.LoggedIn' )>
        <cfset fusebox.layoutFile = "Layout_LoggedInFalse.cfm">
        <cfset fusebox.layoutDir = "">
<cfelse>
        <cfset fusebox.layoutFile = "Layout_LoggedInTrue.cfm">
        <cfset fusebox.layoutDir = "">
</cfif>

</cflock>



IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to