Table Of Contents
 

About the dcCom Component Framework

Author : Daniel Mackey Email : dan@digital-crew.com Date Added : 31/12/2006 14:00 PM Last Edited : 10/07/2007 02:27 AM by Peter Coppinger


What is dcCom?


dcCom is a component framework for ColdFusion that allows components to be wrapped up together with all the files they need. Files within a component could include javascript, flash or graphics.

This ability of dcCom allows complete components such as forums systems and other user interface widgets to be invoked on a website with as little as one line of code.

Typically a call to a display or use a dcCom component looks like this:

<cf_dccom component="TheComponent"></cf_dccom>

Components are invoked through the small "dcCom" custom tag - the file for the custom tag "dcCom.cfm", must be present from the location where you are invoking the component. Note: You cannot copy the tag to the "customtags" directory.

When called, the dcCom custom tag attempts to automatically figure out and remember the file and URL path to the dcCom directory. Because of this, dcCom components requires zero installation - they are plug and play.

If you have not used dcCom before, you will be amazed at how easy it is to use; plugging components into your project is as easy as copying the dccom folder in, copying the dccom.cfm file in and them just calling the component.

File Structure


When using dccom components, you will be given a dccom folder which should be placed in the root of your application.
Within this folder are 2 sub-directories, components and engine.

dccom\
     components\
     engine\

The components themselves are stored in "components\" under folder names that match the component attribute in the typical example above.