I was presuming there would be more than one base template in different
cfcases and wanted to show him how it would look, but yes if there was only
one template it would not need a cfswitch.
----- Original Message -----
From: "Eric Dawson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 26, 2000 5:47 AM
Subject: (DA): Site Dedsign Question (Try 2)


> Couldn't this be shortened to:
> <---app_globals.cfm--->
> <cfparam name="content_data" default="">
> <cfparam name="attributes.someattribute" default="">
>
> <---index.cfm--->
> <cfinclude template="app_globals.cfm">
>
> <cf_act_designTKE content=attributes.someattribute>
>    <cfinclude template="dsp_content_table.cfm">
> </cf_act_designTKE>
> ==================
>
> Note: you would need to use the cfswitch if you were calling different
> customtags based on the attributes.somesttribute value.
>
> ??
> E
>
> From: "Sean Renet" <[EMAIL PROTECTED]>
> Date: Thu, 25 May 2000 23:40:03 -0700
>
> Make 4 templates and cut and paste the appropriate code in
> each
> <---app_globals.cfm--->
> <cfparam name="content_data" default="">
> <cfparam name="attributes.someattribute" default="">
>
> <---index.cfm--->
> <cfinclude template="app_globals.cfm">
> <cfswitch expression="#attributes.someattribute#">
>   <cfcase value="girls">
>    <cf_act_designTKE content="girls">
>     <cfinclude template="dsp_content_table.cfm">
>    </cf_act_designTKE>
>   </cfcase>
>   <cfcase value="beer">
>    <cf_act_designTKE content="beer">
>    <cfinclude template="dsp_content_table.cfm">
>    </cf_act_designTKE>
>   </cfcase>
>   <cfdefaultcase>
>    <cf_act_designTKE content="home">
>    <cfinclude template="dsp_content_table.cfm">
>    </cf_act_designTKE>
>   </cfdefaultcase>
> </cfswitch>
>
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to