Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Virtual Folder and Templates?

Status
Not open for further replies.

3dColor

Programmer
Jan 10, 2006
240
US
This question is a tough question to describe, best way to ask it is to tell you what I am doing now and ask if there is an easier way to accomplish the same thing.

I have a lot of city pages for my site similar to this folder structure:

example.com/colorado/denver.cfm

What I have been doing is to create a template called template-city.cfm that gets included in to each city page such as denver.cfm.

So basically denver.cfm is just a tiny shell file and the real guts of the page is located in the template-city.cfm, so the thought is that I only have to change the template-city.cfm once and all the others pages like denver.cfm get updated at once.

But in order to do this I had to create tons of city pages within each state (which I automated with CFfile) but a red flag is going off in my brain telling me this is the wrong way to do it.

Is there some virtual way to create these city pages and even state folders?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top