Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / January 2008



Tip: Looking for answers? Try searching our database.

Create .cfm pages on the fly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
willardnesss - 29 Jan 2008 12:22 GMT
I am sure this topic has been discussed, but I can't seem to find the write
search term to find an article on this:

I am trying to create CFM webpages on the fly.  Instead of creating a template
webpage that uses the URL to feed the dynamic info, I would like to create
actual web pages without dynamic URLs.  THis is for search engine optimization.

Concept:

1: Template web page
2: Dynamically populate this template with the dynamic info such as: File
name, title, path of graphics, even a database query which calls the database
for that file's content, then text generated from text in database for that
file.
3: Save this new file as #File_Name#.cfm
4: I was going to use CFFILE to create this page - have the html template as a
txt file, and just drop in all of the dynamic info into the text file on the
fly, then save as the CFM page.

Is there a more efficient - effective way to do this?
GArlington - 29 Jan 2008 12:52 GMT
On Jan 29, 12:22 pm, "willardnesss" <webforumsu...@macromedia.com>
wrote:
> I am sure this topic has been discussed, but I can't seem to find the write
> search term to find an article on this:
[quoted text clipped - 16 lines]
>
>  Is there a more efficient - effective way to do this?

I am not sure what you are trying to achieve and how?
For SEO most of the time URL rewriting is used reasonably
successfully.
Dan Bracuk - 29 Jan 2008 14:05 GMT
cffile will work.  One obstacle you will have is that if you store cf code in a
db, you might have trouble getting it to execute after you select it.

I'm curious about at what point your cf page gets run.

good luck with your testing.
Steve Sommers - 31 Jan 2008 01:24 GMT
Yes, it is definitely doable using cffile. I would research FuseBox -- it does most, if not all of what you describe behind the scenes and hides this layer from you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.