Album Image Uploads: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
*<code>site_section</code> | *<code>site_section</code> | ||
*<code>section_properties</code> | *<code>section_properties</code> | ||
==See Also== | |||
*[[Radomizing Image Names]] | |||
[[Category:CMS Documentation]] | [[Category:CMS Documentation]] | ||
[[Category:Albums CMS]] | [[Category:Albums CMS]] | ||
[[Category:JQuery/AJAX]] | [[Category:JQuery/AJAX]] | ||
Revision as of 13:34, 12 March 2012
Upload Types
Content type without album
Album-based content using a gallery image as a thumbnail
- The thumbnail is a pointer to one of the album image records.
Album-based content with thumbnail record independent of the gallery images
- The thumbnail
image_linkrecord has the sametype_idas the parent content record. - The gallery images have a different
type_idvalue from the thumbnail imageimage_linkrecord.
PHP Classes
- Shared PHP classes
[COMMON_LIB]_classes/images/image_upload_class.php(extendsimage_link_class)
PHP Template Includes
[COMMON_TEMPLATE_DIR]forms/images/thumbnail_overlay_buttons.php
Include this once somewhere on the page containing the image upload controls.- For album-based uploads (both with linked and independent thumbnails)
include (COMMON_TEMPLATE_DIR."forms/images/select_thumbnail_link_container.php");
- For images within gallery listings:
- IMG
class="gallery-edit" - IMG attributes
data-idanddata-tid $('.gallery-edit')handler is set inLITTLED.Gallery.bindImageOverlayHandlers()- single click: display edit and delete buttons overlaid on the image
- double click: display the full-sized version of the image in a lightbox
- IMG
JavaScript Libraries
[COMMON_LIB]scripts/littled/littled.js[COMMON_LIB]scripts/littled/listings.js[COMMON_LIB]scripts/littled/gallery.js
AJAX Handler Scripts
[ADMIN_ROOT]_ajax/images/edit_image.php
Designed to handle uploading and editing images from within image and album listings.[ADMIN_ROOT]_ajax/images/upload_image.php
Designed to handler uploading a single image within the parent article edit form.
MySQL Tables
image_linkimagessite_sectionsection_properties