WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

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

Drogba921


Registered Member
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

http://www.codinghelp.org

2 Re: Coldfusion Cfinclude Tutorial on Fri May 13, 2011 11:16 pm

Drogba921


Registered Member
Registered Member
I will be adding CFSWITCH to this tutorial later.

http://www.codinghelp.org

3 Re: Coldfusion Cfinclude Tutorial on Sat May 14, 2011 12:05 am

Gangstar15


Registered Member
Registered Member
Really cool! Very Happy

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum