0 Replies - 1055 Views - Last Post: 09 May 2005 - 04:16 PM

#1 wiredwizard  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 76
  • Joined: 07-May 05

display.cfm

Posted 09 May 2005 - 04:16 PM

Description: self explanitoryswitch statement for display page
<cfif NOT isDefined( "url.pid" )>
               <cfset url.pid = 0>
          </cfif>
          <cfswitch expression="#url.pid#">
               <cfcase value="about">
                    <cfinclude template="about.cfm">
               </cfcase>
               <cfcase value="communities">
                    <cfinclude template="communities.cfm">
               </cfcase>
               <cfcase value="contact">
                    <cfinclude template="contact.cfm">
               </cfcase>
               <cfcase value="floorplans">
                    <cfinclude template="floorplans.cfm">
               </cfcase>
               <cfcase value="homes">
                    <cfinclude template="homes.cfm">
               </cfcase>
               <cfcase value="vTours">
                    <cfinclude template="vTours.cfm">
               </cfcase>
               <cfdefaultcase>
                    <cfinclude template="myhome.cfm">
               </cfdefaultcase>
          </cfswitch>


Is This A Good Question/Topic? 0
  • +

Page 1 of 1