Difference between revisions of "PT Photo Gallery Configuration"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == The Photo Gallery Configuration Pages will be used to manage the PTPhotoGallery Configuration custom element. Follow these steps to configure the datasheet and pag…')
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The Photo Gallery Configuration Pages will be used to manage the PTPhotoGallery Configuration custom element. Follow these steps to configure the datasheet and page for adding.
+
The Photo Gallery Configuration Pages will be used to manage the PTPhotoGallery Configuration custom element. Follow these steps to configure the datasheet and page for adding photos.
  
 
== Steps ==
 
== Steps ==
 
# Create a new page called 'Configuration Manager'.  Recommend creating this page in the ''photogalleryadmin'' subsite.
 
# Create a new page called 'Configuration Manager'.  Recommend creating this page in the ''photogalleryadmin'' subsite.
# In the main content of the page place a Custom Script element.
+
# In the main content of the page, add a Custom Script element.
 
# Enter the explicit module path for:
 
# Enter the explicit module path for:
 
## ''/ADF/apps/pt_photo_gallery/customcf/photo_config_admin_ds.cfm''
 
## ''/ADF/apps/pt_photo_gallery/customcf/photo_config_admin_ds.cfm''
 
# From the Datasheet element interface, click the "Datasheet" icon.
 
# From the Datasheet element interface, click the "Datasheet" icon.
# From the "Datasheet Views" dialog, click the "Click here to create a new datasheet view" text.
+
# From the "Datasheet Views" dialog, follow the "Click here to create a new datasheet view" link.
 
# Enter the following information and then click "Next":
 
# Enter the following information and then click "Next":
 
## Name: All Photo Gallery Configurations
 
## Name: All Photo Gallery Configurations
Line 17: Line 17:
 
# From the Datasheet Source dialog choose the "PTPhotoGallery Configuration" custom element and click "Next".
 
# From the Datasheet Source dialog choose the "PTPhotoGallery Configuration" custom element and click "Next".
 
# From the Datasheet Columns Dialog choose a few columns from the Available Columns list and move them to the Selected Columns list. (CE_FORM_ID, CE_NAME, UPLOAD_URL, etc...) and then click "Finish".
 
# From the Datasheet Columns Dialog choose a few columns from the Available Columns list and move them to the Selected Columns list. (CE_FORM_ID, CE_NAME, UPLOAD_URL, etc...) and then click "Finish".
# You will be brought to the Datasheet View page click "Close" to return to your page.
+
# You will be brought to the Datasheet View page; click "Close" to return to your page.
 
# You will see the datasheet element on this page now. Click the Datasheet element interface icon again and this time choose "Edit Columns".
 
# You will see the datasheet element on this page now. Click the Datasheet element interface icon again and this time choose "Edit Columns".
 
# From the Datasheet View Column Properties dialog choose the link for "Add a new action column" again.
 
# From the Datasheet View Column Properties dialog choose the link for "Add a new action column" again.
# Within the Action Column Properties dialog enter the following information and click "Finish"
+
# Within the Action Column Properties dialog enter the following information and click "Finish":
 
## Header: Edit
 
## Header: Edit
 
## Hide Header: Checked
 
## Hide Header: Checked
Line 26: Line 26:
 
## Window Target Name: <leave blank>
 
## Window Target Name: <leave blank>
 
## Modules: edit-form-data.cfm
 
## Modules: edit-form-data.cfm
# From the Datasheet View Column Properties dialog choose the link for "Add a new action column" again.
+
# From the Datasheet View Column Properties dialog, choose the link for "Add a new action column" again.
# Within the Action Column Properties dialog enter the following information and click "Finish"
+
# Within the Action Column Properties dialog enter the following information and click "Finish":
 
## Header: Delete
 
## Header: Delete
 
## Hide Header: Checked
 
## Hide Header: Checked
Line 34: Line 34:
 
## Modules: delete-form-data.cfm
 
## Modules: delete-form-data.cfm
 
# Close the Edit Column window.
 
# Close the Edit Column window.
# Publish the page
+
# Publish the page.
  
 
== Create Photo Gallery Configuration Record ==
 
== Create Photo Gallery Configuration Record ==
 
We are creating a single Photo Gallery Configuration element record to be used within the application.   
 
We are creating a single Photo Gallery Configuration element record to be used within the application.   
  
Go to the Add Configuration page and submit the form to create one record.  Most of the fields will come in defaulted to some text.  Verify the text values to make sure the paths are correct.   
+
Go to the Add Configuration page and submit the form to create one record.  Most of the fields will come in with default text.  Verify the text values for the paths are correct.   
  
See the [[PT_Photo_Gallery Site_Configuration|Site Configuration]] wiki page for more details on the fields.
+
See the [[PT_Photo_Gallery Site_Configuration|Site Configuration]] wiki page for more information on the fields.
  
 
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:
 
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
 
   ?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!).
 
'''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]]

Revision as of 00:18, 21 December 2009

Overview

The Photo Gallery Configuration Pages will be used to manage the PTPhotoGallery Configuration custom element. Follow these steps to configure the datasheet and page for adding photos.

Steps

  1. Create a new page called 'Configuration Manager'. Recommend creating this page in the photogalleryadmin subsite.
  2. In the main content of the page, add a Custom Script element.
  3. Enter the explicit module path for:
    1. /ADF/apps/pt_photo_gallery/customcf/photo_config_admin_ds.cfm
  4. From the Datasheet element interface, click the "Datasheet" icon.
  5. From the "Datasheet Views" dialog, follow the "Click here to create a new datasheet view" link.
  6. Enter the following information and then click "Next":
    1. Name: All Photo Gallery Configurations
    2. Private: unchecked
    3. Default View: unchecked
    4. Description: View to manage all of the Photo Gallery Configurations
    5. Datasheet Source: Form Result/Custom Element Sheet
  7. From the Datasheet Source dialog choose the "PTPhotoGallery Configuration" custom element and click "Next".
  8. From the Datasheet Columns Dialog choose a few columns from the Available Columns list and move them to the Selected Columns list. (CE_FORM_ID, CE_NAME, UPLOAD_URL, etc...) and then click "Finish".
  9. You will be brought to the Datasheet View page; click "Close" to return to your page.
  10. You will see the datasheet element on this page now. Click the Datasheet element interface icon again and this time choose "Edit Columns".
  11. From the Datasheet View Column Properties dialog choose the link for "Add a new action column" again.
  12. Within the Action Column Properties dialog enter the following information and click "Finish":
    1. Header: Edit
    2. Hide Header: Checked
    3. Column Text: edit
    4. Window Target Name: <leave blank>
    5. Modules: edit-form-data.cfm
  13. From the Datasheet View Column Properties dialog, choose the link for "Add a new action column" again.
  14. Within the Action Column Properties dialog enter the following information and click "Finish":
    1. Header: Delete
    2. Hide Header: Checked
    3. Column Text: delete
    4. Window Target Name: <leave blank>
    5. Modules: delete-form-data.cfm
  15. Close the Edit Column window.
  16. Publish the page.

Create Photo Gallery Configuration Record

We are creating a single Photo Gallery Configuration element record to be used within the application.

Go to the Add Configuration page and submit the form to create one record. Most of the fields will come in with default text. Verify the text values for the paths are correct.

See the Site Configuration wiki page for more information on the fields.

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!).