PT Photo Gallery Site Configuration

From ADF Docs
Revision as of 23:57, 22 November 2009 by Renee.mckechnie (talk | contribs) (Created page with '== Overview == The Photo Gallery App uses a custom element to store the site specific configurations. Essentially the Photo Gallery App needs to know what the profile element na…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The Photo Gallery App uses a custom element to store the site specific configurations. Essentially the Photo Gallery App needs to know what the profile element name, unique field, roles, subsite ids, and template ids for the site.

The fields for the PTPhotoGallery Configuration custom element are defined below.

Configuration Fields

There are six major components to the Configuration:

  1. CE_NAME - Photo custom element name within the site.

  2. CE_FORM_ID - Photo custom element form ID within the site. You can get this ID by running the following SQL command on the site database:
 SELECT 	ID
 FROM 	FormControl
 WHERE 	FormName = 'Photo'
 AND 	FormControl.action = ''
  1. ADD_URL - Site relative URL for the Photo Add page.

  2. UPLOAD_FORM_URL - Site relative URL for the Photo Upload page.

  3. UPLOAD_PATH - Server Path on the server to store the uploaded photos.

  4. UPLOAD_URL - URL Path on the server to store the uploaded photos.

  5. UPLOAD_DOC_TYPES - Photo file types that are allowed to be uploaded.