Ask a Question related to Macromedia ColdFusion, Design and Development.
-
mitel_ford #1
Using <cfif> to auto redirect to different pages
I wanted to use the <cfif> statement to create links to various pages that will
load in the same browser window if the statement is true, for example;
<cfif page = "page1">
Automatically load page1.cfm into this currently open window.
</cfelseif page = "page2">
Automatically load page2.cfm into this currently open window.
etc, etc.
I'm not sure what the syntax is for this operation, <http> and <httpparam>
tags perhaps?
mitel_ford Guest
-
Custom Error Pages - 404 File not found & 301 redirect
Hello, We are preparing to launch a new site and would like to create a custom error page for 404 - File not found. I would also like to create... -
Roles based Forms Auth - denied pages redirect
I would like to know how, if at all possible, a custom redirect page can be setup for when a users role(s) are denied to a page. The default... -
Auto Dating pages are printed or updated
I am trying to find a way to have the date print on the pages of my document (file), simaler to how Excel does with its fotter and header... -
Auto add pages when flowing text
Hi all, I am having a problem related to the previous posts: I am flowing text into linked text boxes on page which were set up on the master... -
Page auto redirect to old domain
Hey guys, I have something a bit strange happening, I was hoping you could help me with. I transferred a site to a new server and domain (HTML... -
Frickie #2
Re: Using <cfif> to auto redirect to different pages
<cfif page = "page1">
<cfinclude template="page1.cfm">
<cfelseif page = "page2">
<cfinclude template="page2.cfm">
</cfif>
Frickie Guest
-
Stressed_Simon #3
Re: Using <cfif> to auto redirect to different pages
If you are going to have many choices based on a single variable then you are
better off using cfswitch.
<cfswitch expression="#page#">
<cfcase value="page1">
<cfinclude template="page1.cfm">
</cfcase>
<cfcase value="page2">
<cfinclude template="page2.cfm">
</cfcase>
<cfcase value="page3">
<cfinclude template="page3.cfm">
</cfcase>
<cfcase value="page4">
<cfinclude template="page4.cfm">
</cfcase>
<cfcase value="page5">
<cfinclude template="page5.cfm">
</cfcase>
</cfswitch>
Stressed_Simon Guest



Reply With Quote

