Difference between revisions of "PT Photo Gallery Version 2.0 Upgrade"
From ADF Docs
(Created page with '== Overview == This guide is to upgrade the PT Photo Gallery v2.0 application. == Application Code == # Renamed directory "/ADF/apps/pt_photo_gallery" to "/ADF/apps/pt_photo_gal…') |
(→Photo) |
||
Line 40: | Line 40: | ||
## Change the label text to "Resize Photo Size". | ## Change the label text to "Resize Photo Size". | ||
− | == Photo == | + | === Photo === |
# Update the "Category" field. | # Update the "Category" field. | ||
## In the properties, update the "Default Field Value" to "[request.params.category]". | ## In the properties, update the "Default Field Value" to "[request.params.category]". |
Revision as of 17:49, 3 January 2012
Contents
Overview
This guide is to upgrade the PT Photo Gallery v2.0 application.
Application Code
- Renamed directory "/ADF/apps/pt_photo_gallery" to "/ADF/apps/pt_photo_gallery_v1.1".
- Renamed file "/ADF/apps/pt_photo_gallery_v1.1/appBeanConfig.cfm" to "/ADF/apps/pt_photo_gallery_v1.1/appBeanConfig.cfm.old".
- Downloaded the PT Photo Gallery v2.0 and exported into the "/ADF/apps/pt_photo_gallery/" directory.
Custom Fields
Photo Reference Name
- Import the "Photo Reference Name" custom field type. The exported object can be found here:
- /ADF/apps/pt_photo_gallery/exported-objects/Photo-Reference-Name-Custom-Field-Type.zip
Custom Element Updates
Photo Size
- Update the "Title" field.
- Change the field type to the "Custom Text Field".
- In the properties tab, for the "Field ID" field, enter the text "photoSizeTitle".
- Change the field type to the "Custom Text Field".
- Update the "Directory" field.
- Change the field type to "Photo Reference Name".
- In the properties tab, for the "Title Field ID" field, enter the text "photoSizeTitle".
- In the properties tab, for the "Field ID" field, enter the text "photoSizeDirectory".
- Change the label text to "Reference Name".
- Change the description text to "This is the reference name value to return the specific photo size. This field is read only once the record has been created and can not be edited.
Defaulted to the title, but can be customized. The title can be unique and the reference name can be a simple value (i.e. small, medium, large, etc)."
- Change the field type to "Photo Reference Name".
Photo Category
- Update the "Title" field.
- Change the field type to the "Custom Text Field".
- In the properties tab, for the "Field ID" field, enter the text "photoCategoryTitle".
- Change the field type to the "Custom Text Field".
- Update the "Directory" field.
- Change the field type to "Photo Reference Name".
- In the properties tab, for the "Title Field ID" field, enter the text "photoCategoryTitle".
- In the properties tab, for the "Field ID" field, enter the text "photoCategoryDirectory".
- Change the label text to "Reference Name".
- Change the description text to "This is the reference name value to return the specific photo size. This field is read only once the record has been created and can not be edited.
Defaulted to the title, but can be customized. The title can be unique and the reference name can be a simple value (i.e. small, medium, large, etc). "
- Change the field type to "Photo Reference Name".
- Update the "Required Size ID List" field.
- Change the label text to "Required Photo Size".
- Update the "Resize Size ID List" field.
- Change the label text to "Resize Photo Size".
Photo
- Update the "Category" field.
- In the properties, update the "Default Field Value" to "[request.params.category]".
- Update the "PhotoID" field.
- In the properties, update the "Default Field Value" to the ColdFusion expresssion "createUUID()".
PtPhotoGallery Configuration
- Delete the fields from the element:
- CE Name
- CE FORM ID
- Add URL
- Upload Path
Create the following new tab:
- Features
- Display Name: Features
- Sort Name: 2-features
Edit the "PtPhotoGallery Configuration" tab and update the tab fields for the following:
- PtPhotoGallery Configuration
- Display Name: PtPhotoGallery Configuration
- Sort Name: 1-ptphotogallery-configuration
Add the following new fields:
- Name: UPLOAD_CROP_URL
- If this field does exist already, then move the field to the "Features" tab.
- In the "Feature" tab.
- Type: CommonSpot Page URL
- Label: UPLOAD CROP URL
- Description: Link to the CommonSpot page for the uploading a photo for the crop feature.
Photo Gallery
Add the following Render Handlers:
- Name: Listing
- Description: Renders a listing of the photos selected with the photo display size selected formthe metadata form.
- Rendering Module: /ADF/apps/pt_photo_gallery/renderhandlers/listing_display_rh.cfm
- Name: Single Image
- Description: Renders the top selected photo. The photo size is determined by the detail field in metadata form.
- Rendering Module: /ADF/apps/pt_photo_gallery/renderhandlers/gallery_single_image_rh.cfm
- Name: Single Image Random
- Description: Random selects a single image to display from the selected photos.
- Rendering Module: /ADF/apps/pt_photo_gallery/renderhandlers/gallery_single_image_random_rh.cfm