1
Coldfusion Cfinclude Tutorial on Sun Apr 24, 2011 1:04 am
Drogba921
Registered Member

Note: Copied from another website I posted it on. Full tutorial written by myself. Images by myself.
Sadly, I cannot post raw code as it disappears. It will be done in images.
Hello Users of WebArtz!
In this tutorial you will learn how to make a page and then implement it on every page on your website using Coldfusion.
Note: To do this you will need a database that has Coldfusion Hosting. And your page name will need to end with: .cfm
This tutorial is a Coldfuison version of a HTML Library
First off, Setting up the page.
First you will need to make a page with a .cfm ending, like the screenshot below.

In this page, you can delete all of the content, including the HTML Tags, Header, Body etc. You will then add the content you want to appear on each site, for this tutorial I will show a header message.

The cool thing is, you don't need to do any CSS styling, it will inherit this from the pages you put it on.
Next, you will need to put this file into your other files. This sounds complicated but it really isnt. All you need to do is go into the file you want to include this message in, and then put the following:

You can do this on as many pages as you like, and when you edit the original file (See screenshot two up) it will update the whole site.
This is a complicated tutorial, if you need help ,ask.
Live Demo: Go here: http://bit.ly/evuJOg and scroll to where it says Gamelist. That is "cfincluded" from this page: http://bit.ly/gQRuG8
--drogba921
Coding Guru
Sadly, I cannot post raw code as it disappears. It will be done in images.
Hello Users of WebArtz!
In this tutorial you will learn how to make a page and then implement it on every page on your website using Coldfusion.
Note: To do this you will need a database that has Coldfusion Hosting. And your page name will need to end with: .cfm
This tutorial is a Coldfuison version of a HTML Library
First off, Setting up the page.
First you will need to make a page with a .cfm ending, like the screenshot below.

In this page, you can delete all of the content, including the HTML Tags, Header, Body etc. You will then add the content you want to appear on each site, for this tutorial I will show a header message.

The cool thing is, you don't need to do any CSS styling, it will inherit this from the pages you put it on.
Next, you will need to put this file into your other files. This sounds complicated but it really isnt. All you need to do is go into the file you want to include this message in, and then put the following:

You can do this on as many pages as you like, and when you edit the original file (See screenshot two up) it will update the whole site.
This is a complicated tutorial, if you need help ,ask.
Live Demo: Go here: http://bit.ly/evuJOg and scroll to where it says Gamelist. That is "cfincluded" from this page: http://bit.ly/gQRuG8
--drogba921
Coding Guru






