Okay. In this app. the user is not given the ability to change the layout. So I'll stick with my planned programmatic controls.
Thanks Adam, Dan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Churvis Sent: Tuesday, May 03, 2005 1:55 PM To: [email protected] Subject: Re: [plum] Different layouts vs. User dependent components Use Plum's chooseable layouts feature for user-chooseable functionality, and handcraft your own programmatic control over all other layout functionality. If you try to programmatically control Plum's choice of layout (as if you were the user) then that can be overridden by playing with the cookie, so it's not secure. Respectfully, Adam Phillip Churvis Member of Team Macromedia http://www.ProductivityEnhancement.com Download Plum and other cool development tools, and get advanced intensive Master-level training: * C# & ASP.NET for ColdFusion Developers * ColdFusion MX Master Class * Advanced Development with CFMX and SQL Server 2000 ----- Original Message ----- From: "Dan" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, May 03, 2005 1:01 PM Subject: [plum] Different layouts vs. User dependent components In the Application Framework Overview / About Plum Layouts, it is recommended that if you have similar layouts give each its own copy of the files it needs. In my project I have roughly two "different" yet similar layouts occurring, the "display" of which is controlled (dependent) on the type of User that is or is not logged in. Example: the site/project has a top-horizontal SiteNav bar, the options/items shown are based on whether the user is not logged in-a Public User-or is logged in as either a "client" or a "coach" The layout of the page (index.cfm) or the SiteNav bar itself does not change, only the content of the bar changes (based on the User) and the content then selected/displayed within the "content wrapper" section/div. 2nd example: the site/project has a page centered div "content wrapper" (with the Masthead and SiteNav above it, and "footer/copyright notice etc. below it) For a Public (non-Login) user the "internal layout" of the ContentWrapper div will/can changed based on content items selected. For a Login User the ContentWrapper div will now contain a left-column "subNav" and a primary right-column "content" div. There are changes in the layout occurring (which is also very similar to the standard Plum layout). To me it makes sense to have ONE layout set with switch/case conditions controlling which "internal" content div's to use based on the user's Login role. I'm using the User's role to determine which sub-layout condition to use as well as (in part) what content to pull in to that sub-layout condition. Versus having a "public user layout" and a "logged-in user layout" Am I on the right page with this? Thanks, Dan Kaufman An Elephant Never Forgets [EMAIL PROTECTED] ********************************************************************** You can subscribe to and unsubscribe from lists, and you can change your subscriptions between normal and digest modes here: http://www.productivityenhancement.com/support/DiscussionListsForm.cfm ********************************************************************** ********************************************************************** You can subscribe to and unsubscribe from lists, and you can change your subscriptions between normal and digest modes here: http://www.productivityenhancement.com/support/DiscussionListsForm.cfm **********************************************************************
