Difference between revisions of "PT Photo Gallery ADF Configuration"

From ADF Docs
Jump to: navigation, search
(Created page with '== 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. Further details can…')
 
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
== Overview ==
 
== 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.
+
The Photo Gallery Application is built within the ADF.  The ADF must be installed in the site to run the Photo Gallery, follow the ADF [[Installation]] instructions.
 
 
Further details can be found at the [[Site Configuration|Site Configuration]] wiki page.
 
  
 
== Steps ==
 
== Steps ==
* Locate the following two files in the 'ADF/core/site-samples' directory.
+
* Make sure the ADF is setup and running on the site. If the ADF is not setup, then follow the instructions for ADF [[Installation]].
** custom-application.cfm
+
* Open the sites 'ADF.cfc' ([[Site Configuration (ADF.cfc)|See Site Configuration (ADF.cfc) for more info]]) file (located in your site's /_cs_apps/ directory) 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:
** ADF.cfc
+
<source lang="java">
* 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.
+
loadApp("ptPhotoGallery");
 
+
</source>
'''NOTE''': If you are installing the custom-application file on your site for the first time, you need to restart ColdFusion.  
+
* [[Reset ADF|Reset the ADF]] for the server and site.
  
* Copy the 'ADF.cfc' file into the '_cs_apps' directory of your site.
+
[[Category:Photo Gallery]]
* 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.  (If the site is completely new, you may have to create an index.cfm page first.)
 
  ?ResetServerADF=1&ResetSiteADF=1
 

Latest revision as of 04:52, 15 April 2010

Overview

The Photo Gallery Application is built within the ADF. The ADF must be installed in the site to run the Photo Gallery, follow the ADF Installation instructions.

Steps

  • Make sure the ADF is setup and running on the site. If the ADF is not setup, then follow the instructions for ADF Installation.
  • Open the sites 'ADF.cfc' (See Site Configuration (ADF.cfc) for more info) file (located in your site's /_cs_apps/ directory) 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");