Difference between revisions of "PT Photo Gallery Photo Category Admin Datasheet"

From ADF Docs
Jump to: navigation, search
(Steps)
(Steps)
Line 14: Line 14:
 
## Datasheet Source: Form Result/Custom Element Sheet
 
## Datasheet Source: Form Result/Custom Element Sheet
 
# From the Datasheet Source dialog, choose the "Photo Category" custom element and click "Next".
 
# From the Datasheet Source dialog, choose the "Photo Category" custom element and click "Next".
# From the Datasheet Columns dialog, select the columns CategoryID, Title, and Directory from the Available Columns list and move them to the Selected Columns list.
+
# From the Datasheet Columns dialog, select the columns Title, and Directory from the Available Columns list and move them to the Selected Columns list.
 
# You will be directed to the Datasheet View page.  Click "Close" to return to your page.
 
# You will be directed 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 choose "Edit Columns".
+
# You will now see the datasheet element on this page. Click the Datasheet element interface icon again and choose "Edit Columns".
# From the Datasheet View Column Properties dialog, select the ''PhotoID'' column, then edit.  Update the following settings for column:
+
# From the Datasheet View Column Properties dialog, choose the link for "Add a new action column".
## Remove the text from the ''Header'' field.
+
# Within the Action Column Properties dialog, enter the following information and click "Finish":
## Change the Render Handler to the following file: ''/ADF/apps/pt_photo_gallery/datasheet-modules/photo-update-edit-form-data.cfm''
+
## Header: Edit
# From the Datasheet View Column Properties dialog, select the ''Category'' column, then edit. Update the following setting for column:
+
## Hide Header: Checked
## Change the Render Handler to the following file: ''/ADF/apps/pt_photo_gallery/datasheet-modules/category-display-render.cfm''
+
## Column Text: ''edit''
# From the Datasheet View Column Properties dialog, select the ''Photo'' column, then edit.  Update the following setting for column:
+
## Window Target Name: <leave blank>
## Change the Render Handler to the following file: ''/ADF/apps/pt_photo_gallery/datasheet-modules/photo-image-preview-display-render.cfm''
+
## Available Modules: edit-form-data.cfm
# Close the Edit Column window.
+
# From the Datasheet View Column Properties dialog, choose the link for "Add a new action column" again.
# Set the datasheet layout to sort by the ''Title'' field.
+
# Within the Action Column Properties dialog enter the following information and click "Finish":
 +
## Header: delete
 +
## Hide Header: Checked
 +
## Column Text: ''delete''
 +
## Window Target Name: <leave blank>
 +
## Available Modules: delete-form-data.cfm
 +
# Close the Edit Columns window.
 
# Publish this page.
 
# Publish this page.
  
 
[[Category:Photo Gallery]]
 
[[Category:Photo Gallery]]

Revision as of 23:01, 24 March 2010

Overview

The Photo Gallery Category element is a global custom element. Managing data for global custom elements can be configured easily through the use of Datasheets. The following sections will describe how to configure the datasheet to manage photo element data.

Steps

  1. Open the Photo Manager page in author mode.
  2. On the second tab labeled Category is a Datasheet element.
  3. From the Datasheet element interface, click the "Datasheet" icon.
  4. From the "Datasheet Views" dialog, follow the "Click here to create a new datasheet view" link.
  5. Enter the following information and then click "Next":
    1. Name: All Categories
    2. Private: unchecked
    3. Default View: unchecked
    4. Description: View to manage all of the photos
    5. Datasheet Source: Form Result/Custom Element Sheet
  6. From the Datasheet Source dialog, choose the "Photo Category" custom element and click "Next".
  7. From the Datasheet Columns dialog, select the columns Title, and Directory from the Available Columns list and move them to the Selected Columns list.
  8. You will be directed to the Datasheet View page. Click "Close" to return to your page.
  9. You will now see the datasheet element on this page. Click the Datasheet element interface icon again and choose "Edit Columns".
  10. From the Datasheet View Column Properties dialog, choose the link for "Add a new action column".
  11. 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. Available Modules: edit-form-data.cfm
  12. From the Datasheet View Column Properties dialog, choose the link for "Add a new action column" again.
  13. 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. Available Modules: delete-form-data.cfm
  14. Close the Edit Columns window.
  15. Publish this page.