Difference between revisions of "PT Photo Gallery ADF Configuration"

From ADF Docs
Jump to: navigation, search
(Overview)
Line 3: Line 3:
  
 
== Steps ==
 
== Steps ==
* Locate the following two files in the 'ADF/core/site-samples' directory.
+
* Locate the following files in the 'ADF/core/site-samples' directory:
 
** custom-application.cfm
 
** custom-application.cfm
 
** ADF.cfc
 
** ADF.cfc
* Copy the 'custom-application.cfm' file into the root of your site.  If your site already has a custom-application.cfm file, then open this new file and copy-paste the contents into your existing file.
+
* Copy the 'custom-application.cfm' file into the root of your site.  If your site already has a custom-application.cfm file, open this new file and copy the contents into your existing file.
  
'''NOTE''': If you are installing the custom-application file on your site for the first time, you need to restart ColdFusion.  
+
'''NOTE''': If you are installing a custom-application file in your site for the first time, restart ColdFusion.  
  
 
* Copy the 'ADF.cfc' file into the '_cs_apps' directory of your site.
 
* Copy the 'ADF.cfc' file into the '_cs_apps' directory of your site.
 
* Open the 'ADF.cfc' file for your site in a text editor.  Locate the 'Load the ADF Application into application space' comment in the file.  Add (or uncomment) the following command under the comment section:
 
* Open the 'ADF.cfc' file for your site in a text editor.  Locate the 'Load the ADF Application into application space' comment in the file.  Add (or uncomment) the following command under the comment section:
   loadApp("ptPhotoGallery");
+
   <pre>loadApp("ptPhotoGallery");</pre>
* Reset the ADF for the server and site.  Add the following URL parameter to any page within the site(If the site is completely new, you may have to create an index.cfm page first.)
+
* [[Reset ADF|Reset the ADF]] for the server and site.  Add the following URL parameter to any page within the site:
  ?ResetServerADF=1&ResetSiteADF=1
+
  <pre>?ResetServerADF=1&ResetSiteADF=1</pre>
 +
(If the site is completely new, you may have to create an index.cfm page first.)
 +
 
 +
[[Category:Photo Gallery]]

Revision as of 23:29, 20 December 2009

Overview

The Photo Gallery Application is built within the ADF. The ADF must be configured for the site to install the Photo Gallery within the site.

Steps

  • Locate the following files in the 'ADF/core/site-samples' directory:
    • custom-application.cfm
    • ADF.cfc
  • Copy the 'custom-application.cfm' file into the root of your site. If your site already has a custom-application.cfm file, open this new file and copy the contents into your existing file.

NOTE: If you are installing a custom-application file in your site for the first time, restart ColdFusion.

  • Copy the 'ADF.cfc' file into the '_cs_apps' directory of your site.
  • Open the 'ADF.cfc' file for your site in a text editor. Locate the 'Load the ADF Application into application space' comment in the file. Add (or uncomment) the following command under the comment section:
loadApp("ptPhotoGallery");
  • Reset the ADF for the server and site. Add the following URL parameter to any page within the site:
?ResetServerADF=1&ResetSiteADF=1

(If the site is completely new, you may have to create an index.cfm page first.)