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

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == The Photo Size element is a global custom element. Managing data for global custom elements can be configured easily through the use of Datasheets. The following s…')
 
(Steps)
 
(9 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
== Steps ==
 
== Steps ==
 
# Open the ''Photo Manager'' page in authormode.
 
# Open the ''Photo Manager'' page in authormode.
# On the third tab labeled "Size" is a Datasheet and Simple Form element.
+
# On the third tab labeled "Size" is a Datasheet element.
 
# 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 Size
 
## Name: All Photo Size
Line 13: Line 13:
 
## Description: View to manage all of the photo sizes
 
## Description: View to manage all of the photo sizes
 
## Datasheet Source: Form Result/Custom Element Sheet
 
## Datasheet Source: Form Result/Custom Element Sheet
# From the Datasheet Source dialog choose the "Photo_Size" custom element and click "Next".
+
# From the Datasheet Source dialog, choose the "Photo_Size" 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. (Title, Directory, Width, Height, Type, etc...) and then click "Finish".
+
# From the Datasheet Columns dialog select the columns SizeID, Title, Directory, Width, Height, Type and move them to the Selected Columns list then click "Finish".
# You will be brought 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 this time 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 choose the link for "Add a new action column".
+
# From the Datasheet View Column Properties dialog, select the SizeID column, then edit. Update the following settings for column:
# Within the Action Column Properties dialog enter the following information and click "Finish":
+
# Change the Render Handler to the following file: /ADF/extensions/datasheet-modules/1.0/edit-delete.cfm
## Header: Edit
 
## Hide Header: Checked
 
## Column Text:
 
### <nowiki><div class='ds-icons ui-state-default ui-corner-all' title='edit' ><div style='margin-left:auto;margin-right:auto;' class='ui-icon ui-icon-pencil'></div></div></nowiki>
 
## Window Target Name: <leave blank>
 
## Available Modules: edit-form-data.cfm
 
# 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"
 
## Header: delete
 
## Hide Header: Checked
 
## Column Text:
 
### <nowiki><div class='ds-icons ui-state-default ui-corner-all' title='delete' ><div style='margin-left:auto;margin-right:auto;' class='ui-icon ui-icon-trash'></div></div></nowiki>
 
## Window Target Name: <leave blank>
 
## Available Modules: delete-form-data.cfm
 
 
# Close the Edit Columns window.
 
# Close the Edit Columns window.
 
# Publish this page.
 
# Publish this page.
 +
 +
[[Category:Photo Gallery]]

Latest revision as of 19:34, 10 October 2011

Overview

The Photo Size 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 the Photo Size element data.

Steps

  1. Open the Photo Manager page in authormode.
  2. On the third tab labeled "Size" 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 Photo Size
    2. Private: unchecked
    3. Default View: unchecked
    4. Description: View to manage all of the photo sizes
    5. Datasheet Source: Form Result/Custom Element Sheet
  6. From the Datasheet Source dialog, choose the "Photo_Size" custom element and click "Next".
  7. From the Datasheet Columns dialog select the columns SizeID, Title, Directory, Width, Height, Type and move them to the Selected Columns list then click "Finish".
  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, select the SizeID column, then edit. Update the following settings for column:
  11. Change the Render Handler to the following file: /ADF/extensions/datasheet-modules/1.0/edit-delete.cfm
  12. Close the Edit Columns window.
  13. Publish this page.