Difference between revisions of "Load ADF Components into Site"
From ADF Docs
(Created page with '== Load ADF Library Components into a Site == Following are instructions to load the ADF library components into a sites ''application.ADF'' scope: # Open the ''ADF.cfc'' in the…') |
|||
Line 7: | Line 7: | ||
# Here is a sample for adding the ''Scripts_1_0'' ADF library component into the ''application.ADF.scripts'' variable: | # Here is a sample for adding the ''Scripts_1_0'' ADF library component into the ''application.ADF.scripts'' variable: | ||
application.ADF["scripts"] = server.ADF.objectFactory.getBean("scripts_1_0"); | application.ADF["scripts"] = server.ADF.objectFactory.getBean("scripts_1_0"); | ||
− | + | ||
+ | The scripts component is now accessible via application scope for the site. | ||
application.ADF.scripts | application.ADF.scripts | ||
− | See [[Site_Configuration#ADF_Library_Components|Site Configuration - Library Components]] wiki page for more details. | + | See the [[Site_Configuration#ADF_Library_Components|Site Configuration - Library Components]] wiki page for more details. |
== Related Guides == | == Related Guides == | ||
* [[Installation|ADF Installation]] | * [[Installation|ADF Installation]] | ||
* Adding Site Level Components (non application) | * Adding Site Level Components (non application) | ||
+ | |||
+ | [[Category: How-to Guide]] |
Revision as of 00:13, 20 December 2009
Load ADF Library Components into a Site
Following are instructions to load the ADF library components into a sites application.ADF scope:
- Open the ADF.cfc in the sites "_cs_apps" directory.
- Locate the Define the ADF components... section at the top of the file.
- Set an application.ADF structure to the ADF library component with the structure key as the short name for the component (name without the version numbers).
- Here is a sample for adding the Scripts_1_0 ADF library component into the application.ADF.scripts variable:
application.ADF["scripts"] = server.ADF.objectFactory.getBean("scripts_1_0");
The scripts component is now accessible via application scope for the site.
application.ADF.scripts
See the Site Configuration - Library Components wiki page for more details.
Related Guides
- ADF Installation
- Adding Site Level Components (non application)