Album Image Uploads: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(Created page with "==Upload Types== *Content type without album *Album-based content using an image from the album as a thumbnail (the thumbnail is a pointer to one of the album image records). ...")
 
No edit summary
Line 19: Line 19:
**single click: display edit and delete buttons overlaid on the image
**single click: display edit and delete buttons overlaid on the image
**double click: display the full-sized version of the image in a lightbox
**double click: display the full-sized version of the image in a lightbox
[[Category:CMS Documentation]]
[[Category:Albums CMS]]
[[Category:Albums CMS]]
[[Category:CMS Documentation]]
[[Category:JQuery/AJAX]]

Revision as of 03:12, 7 February 2012

Upload Types

  • Content type without album
  • Album-based content using an image from the album as a thumbnail (the thumbnail is a pointer to one of the album image records).
  • Album-based content where the thumbnail image record is independent of the album images.

PHP Classes

  • Shared PHP classes
  • /_classes/images/image_upload_class.php (extends image_link_class)

PHP 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-id and data-tid
    • $('.gallery-edit') handler is set in LITTLED.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