Difference between revisions of "PT Photo Gallery Photo Upload"

From ADF Docs
Jump to: navigation, search
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The Photo Upload Page will be used to upload new photos into the Photo Element. Follow these steps to configure.
+
The Photo Upload Page will be used to upload new photos into the Photo Element.  
  
 
== Steps ==
 
== Steps ==
# Create a new page called 'Photo Upload'.  Recommend using the ''Blank Template'' because this page will be opened in a Lightbox.  Recommend creating this page in the ''/photogalleryadmin/lightbox/'' subsite.
+
# Create a new page called 'Photo Upload' from the [[PT_Photo_Gallery_Lightbox_Template|Lightbox Template]] and in the ''/lightbox/photogallery/'' subsite.
 
# In the main content of the page, add a Custom Script element.
 
# In the main content of the page, add a Custom Script element.
 
# From the Custom Script element interface, click the "Edit" icon.
 
# From the Custom Script element interface, click the "Edit" icon.
# Enter the following text into the Explicit Module path:
+
# Enter the following text into the Explicit Module path: ''/ADF/apps/pt_photo_gallery/customcf/handle_photo_upload.cfm''
## /ADF/apps/pt_photo_gallery/customcf/handle_photo_upload.cfm
 
 
## Select Finish and then Finish again.
 
## Select Finish and then Finish again.
 
# Publish the page.
 
# Publish the page.
  
 
== Update Photo Gallery Site Config ==
 
== Update Photo Gallery Site Config ==
This page will be used to add new profile records.  Update the pt_profile.xml config file that we set up in [[PT_Photo_Gallery Site Configuration|Site Configuration]].  Get the URL for this page and update the <UPLOAD_FORM_URL> tag value with the page URL.  Exclude the site name and leading slash from this value.
+
Update the Photo Gallery Configuration for the UPLOAD FORM URL fieldEdit the row in the datasheet and select the CommonSpot page that was created.
*(i.e. <UPLOAD_FORM_URL>photogalleryadmin/lightbox/Photo-Upload.cfm</UPLOAD_FORM_URL>).
+
 
* The ADF needs to be reset for the server and site for these CCAPI updates to take effect. Enter the following URL parameter string to any page call within the site:
+
[[Reset ADF|Reset the ADF]] for the server and site.
  ?resetServerADF=1&resetSiteADF=1
 
'''Note: Resetting the ADF server might affect all sites implementing the ADF.'''  If an error occurs, this could cause sites to go down.  Needless to say, updates to the ADF Bean Configs and config files should be done in a controlled development environment (not on production servers!).
 
  
 
[[Category:Photo Gallery]]
 
[[Category:Photo Gallery]]

Revision as of 22:40, 24 March 2010

Overview

The Photo Upload Page will be used to upload new photos into the Photo Element.

Steps

  1. Create a new page called 'Photo Upload' from the Lightbox Template and in the /lightbox/photogallery/ subsite.
  2. In the main content of the page, add a Custom Script element.
  3. From the Custom Script element interface, click the "Edit" icon.
  4. Enter the following text into the Explicit Module path: /ADF/apps/pt_photo_gallery/customcf/handle_photo_upload.cfm
    1. Select Finish and then Finish again.
  5. Publish the page.

Update Photo Gallery Site Config

Update the Photo Gallery Configuration for the UPLOAD FORM URL field. Edit the row in the datasheet and select the CommonSpot page that was created.

Reset the ADF for the server and site.