×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

General

Are there ways to easily change designs with application.cfm & onrequestend.cfm? by webmigit
Posted: 9 Aug 02 (Edited 15 Aug 02)

I'm a designer and a developer.. As a developer I like application.cfm and onrequestend.cfm, for header and footers for my designs.. as a designer, it is a great pain to change the design.. I have to piece it together and then change it pull it apart..

I started a new site and had a revelation...

Create your design in whatever manner you like and save it as one file.. in the place where you want the content that varies from page to page.. use this <CFINCLUDE template="#cgi.script_name#"> (On my computer, that worked, but on the server, I had to say.. <CFINCLUDE template="#right(cgi.script_name,len(cgi.script_name) - 1)#">.. so you may have to do the same..

Anyway now when I want to change the design, I can open it in notepad or my favorite WYSIWYG and edit it without and complications...

Update: This is critical, if people discover the name of your layout page, they can set your server into an endless loop.. so if we're going to call the page sitelayout.cfm.. We'll want to do this:

<CFIF cgi.script_name is not "sitelayout.cfm">
 ....your include code...
</CFIF>


At the bottom of your page template.. remember to put <CFABORT>.. that also works at the bottom of application.cfm if you prefer.

Back to Adobe FAQ Index
Back to Adobe Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close