|
Contents:
Create New Component Components are a Coldfusion feature that allows developers to separate Site design from programming logic. Typically components handle storing and retrieving data to and from a database, handling file uploads etc. Only experienced Coldfusion programmers should create New Components. I.C.E. CMS allows you to create and manage components, which you can then use in your Channels or Containers. Create New Component Select Component in the Create drop-down. Enter a name (single word without the .cfc extension) for your Component in the Component Title field and an optional Description of what the Component does. Next enter the Code for the Component in CFML. The code you enter here is exactly the same as what you would write if you were writing the component manually. Set the Status to Active and click Save. Components you create are stored at ice/sites/[SITE FOLDER]/components/[COMPONENT TITLE].cfc Using Components To use a Component, you invoke it in a Channel (Index Template Code or Page Template Code fields) or ideally in a Container just like you would any Coldfusion Component. Example Code: <cfinvoke component="ice.sites.[SITE FOLDER].components.[COMPONENT NAME WITHOUT EXTENSION]" returnvariable="[A VARIABLE NAME]"> |
DEMO (Beta)
Don't take our word for it. Try Lingxia 273 I.C.E. content managent system now: (Contact us to access the demo with Admin privileges) |
Copyright 2009 - Lingxia 273. All rights reserved