Difference between revisions of "PT Photo Gallery Site Configuration"
From ADF Docs
(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…') |
|||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | The Photo Gallery App uses a custom element to store | + | The Photo Gallery App uses a custom element to store site specific configurations. The Photo Gallery App needs to know the profile element name, unique field, roles, subsite ids, and template ids for the site. |
− | The fields for the | + | The fields for the Photo Gallery Configuration custom element are defined below. |
== Configuration Fields == | == Configuration Fields == | ||
− | There are six major components to the | + | There are six major components to the configuration: |
# CE_NAME - Photo custom element name within the site.<br /><br /> | # CE_NAME - Photo custom element name within the site.<br /><br /> | ||
# 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: | # 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: | ||
+ | <pre> | ||
SELECT ID | SELECT ID | ||
FROM FormControl | FROM FormControl | ||
WHERE FormName = 'Photo' | WHERE FormName = 'Photo' | ||
− | AND FormControl.action = | + | AND FormControl.action = '' |
+ | </pre> | ||
# ADD_URL - Site relative URL for the Photo Add page.<br /><br /> | # ADD_URL - Site relative URL for the Photo Add page.<br /><br /> | ||
# UPLOAD_FORM_URL - Site relative URL for the Photo Upload page. <br /><br /> | # UPLOAD_FORM_URL - Site relative URL for the Photo Upload page. <br /><br /> | ||
Line 17: | Line 19: | ||
# UPLOAD_URL - URL Path on the server to store the uploaded photos. <br /><br /> | # UPLOAD_URL - URL Path on the server to store the uploaded photos. <br /><br /> | ||
# UPLOAD_DOC_TYPES - Photo file types that are allowed to be uploaded. <br /><br /> | # UPLOAD_DOC_TYPES - Photo file types that are allowed to be uploaded. <br /><br /> | ||
+ | |||
+ | [[Category:Photo Gallery]][[Category:Site Configuration]] |
Revision as of 23:43, 20 December 2009
Overview
The Photo Gallery App uses a custom element to store site specific configurations. The Photo Gallery App needs to know the profile element name, unique field, roles, subsite ids, and template ids for the site.
The fields for the Photo Gallery Configuration custom element are defined below.
Configuration Fields
There are six major components to the configuration:
- CE_NAME - Photo custom element name within the site.
- 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 = ''
- ADD_URL - Site relative URL for the Photo Add page.
- UPLOAD_FORM_URL - Site relative URL for the Photo Upload page.
- UPLOAD_PATH - Server Path on the server to store the uploaded photos.
- UPLOAD_URL - URL Path on the server to store the uploaded photos.
- UPLOAD_DOC_TYPES - Photo file types that are allowed to be uploaded.