Difference between revisions of "PT Photo Gallery Photo Add"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == The Photo Add Page will be used to add new photos. Follow these steps to configure the link and page for adding photos. == Steps == # Create a new page called 'Ph…')
 
(Update Photo Gallery Site Config)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The Photo Add Page will be used to add new photos. Follow these steps to configure the link and page for adding photos.
+
The Photo Add Page is a lightbox page to create new photo records.
 +
 
 +
Follow these steps to configure the link and page for adding photos.
  
 
== Steps ==
 
== Steps ==
# Create a new page called 'Photo Add'.  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 Add' from the [[PT_Photo_Gallery_Lightbox_Template|Lightbox Template]] and in the ''/lightbox/photogallery/'' subsite.
# In the main content of the page place a Custom Script element.
+
#In the main content of the page place 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_add.cfm''.
## '/ADF/apps/pt_photo_gallery/customcf/handle_photo_add.cfm'.
+
#From the Simple Form element interface icons choose the "Select Form" icon.
# From the Simple Form element interface icons choose the "Select Form" icon.
+
#In the Create/Select Simple Form dialog choose the option to "Select Simple Form/Custom Element" option and click "next".
# In the Create/Select Simple Form dialog choose the option to "Select Simple Form/Custom Element" option and click "next".
+
#From the Select Form/Custom Element dialog choose the "Photo" custom element and click "Finish".
# From the Select Form/Custom Element dialog choose the "Photo" custom element and click "Finish".
+
#Within the "Manage Simple Form Element" dialog, enter the following information:  
# Within the "Manage Simple Form Element" dialog enter the following information:  
+
##Name: (leave as is)
## Name: (leave as is)
+
##Email Notification Recipients: (If you would like to receive an e-mail whenever an event is added place your e-mail in here. This is optional)
## Email Notification Recipients: (If you would like to receive an e-mail whenever an event is added place your e-mail in here. This is optional)
+
##Sender's Email Address: leave checked
## Sender's Email Address: leave checked
+
##Anonymous Sender's Email Address: (add in an anonymous email address if needed)
## Anonymous Sender's Email Address: (add in an anonymous email address if needed)
+
##Form Action: choose "Display Textblock on Submission" option and add 'Photo uploaded successfully!' text in the RTE.   
## Form Action: choose "Display Textblock on Submission" option and add 'Photo uploaded successfully!' text in the RTE.   
+
##Select Finish and then Finish again.
## Select Finish and then Finish again.
+
#Publish the page
# Publish the page
+
 
 +
== Update Configuration ==
 +
Update the Photo Gallery Configuration for the ADD URL field.  Edit the row in the datasheet and select the CommonSpot page that was created.
 +
 
 +
[[Reset ADF|Reset the ADF]] for the server and site.
  
== Update Photo Gallery Site Config ==
+
[[Category:Photo Gallery]]
This page will be used to add new profile records.  Update the pt_profile.xml config file that we setup in [[PT_Photo_Gallery:Site Configuration|Site Configuration]].  Get the URL for this page and update the <ADDURL> tag value with the page URL.  Exclude the site name and leading slash from this value.
 
*(i.e. <ADDURL>photogalleryadmin/Photo-Add.cfm</ADDURL>).
 
* 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:
 
  ?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!).
 

Latest revision as of 22:37, 24 March 2010

Overview

The Photo Add Page is a lightbox page to create new photo records.

Follow these steps to configure the link and page for adding photos.

Steps

  1. Create a new page called 'Photo Add' from the Lightbox Template and in the /lightbox/photogallery/ subsite.
  2. In the main content of the page place 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_add.cfm.
  5. From the Simple Form element interface icons choose the "Select Form" icon.
  6. In the Create/Select Simple Form dialog choose the option to "Select Simple Form/Custom Element" option and click "next".
  7. From the Select Form/Custom Element dialog choose the "Photo" custom element and click "Finish".
  8. Within the "Manage Simple Form Element" dialog, enter the following information:
    1. Name: (leave as is)
    2. Email Notification Recipients: (If you would like to receive an e-mail whenever an event is added place your e-mail in here. This is optional)
    3. Sender's Email Address: leave checked
    4. Anonymous Sender's Email Address: (add in an anonymous email address if needed)
    5. Form Action: choose "Display Textblock on Submission" option and add 'Photo uploaded successfully!' text in the RTE.
    6. Select Finish and then Finish again.
  9. Publish the page

Update Configuration

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

Reset the ADF for the server and site.