Table Of Contents
 

RADFaq - Sample Code

Author : Daniel Mackey Email : dan@digital-crew.com

Running RADFaq is easy. Simply install the component in your website root folder and create a ColdFusion template with the following code:

<cf_dccom component="RADFaq" datasource="myDatasource" username="myUsername" password="myPassword"></cf_dccom>

This is the most basic code you need to get you up and running with RADFaq.

If you would like to use multiple instances of the component, you can pass in an instanceName attribute which segregates your data from each FAQ Section. This puts all the data into the same tables in the database and allows you to edit the categories and faqs in the admin section but only outputs the necessary data on the front end.

To use an instance, simply call the following code:

<cf_dccom component="RADFaq" instanceName="myProductFAQs" datasource="myDatasource" username="myUsername" password="myPassword"></cf_dccom>

Please view the ATTRIBUTES section of the documentation to view a full list of all available attributes used to determine the ouput of the component.