About

Tiny Gallery Insert is a simplified version of the GalleryInsert plugin. It lets you publish several images in a post in one step.

Images can be reordered by mouse drag and drop.

Settings

Thumbnail size
Defines the default image size used in galleries. It can be overridden for each gallery from the insertion window.
Lightbox viewer
Enables LC Lightbox LITE on public galleries. Choose Light, Dark or Minimal, or None to keep plain links to the images.
Markup inserted in posts
HTML element (recommended): the gallery is inserted as <tgi-gallery path="photos" images="a.jpg;b.jpg" thumb="t"></tgi-gallery>, shown in CKEditor as an editable block. Text tag: the legacy ::gallery ...:: syntax. Both syntaxes are always rendered on the public side, so existing posts keep working whatever you choose.

Insertion

Click the Tiny Gallery Insert button in the post editor, choose a media directory and an image size, then select several pictures or add the whole directory. Shift-click a picture to select the whole range since your last click. You can drag and drop thumbnails to set their display order. A single gallery marker is inserted into the post; the gallery itself is built on display from the media library.

The button is available in CKEditor (including its Source mode) and in every mode of the legacy editor: wiki, HTML, Markdown and WYSIWYG. In the wiki syntax, the element is automatically wrapped in a ///html … /// block.

Editing a gallery in CKEditor

Each gallery appears as a block ("Image gallery — directory · N picture(s) · thumbnails: size") that can be selected, moved, copied or deleted as a whole. Double-click it (or press Enter while it is selected, or click the Tiny Gallery Insert button): the selection window opens pre-filled with the directory, the pictures in their current order and the thumbnail size; confirming updates the gallery in place.

Element attributes

path
Media directory (. for the root). Alone, it means the whole directory.
images
File names inside the directory, separated by ;, in display order.
ids
Media ids separated by ; (equivalent of the legacy img=).
thumb
Thumbnail size: sq, t, s or m (default: plugin setting).
link
Link target: o (original image, default), a thumbnail size, or none.

Blog HTML filter

If Dotclear's HTML filter is enabled (system setting enable_html_filter, editable with the aboutConfig plugin), every unknown tag — including <tgi-gallery> — is removed when a post is saved. The plugin then falls back to the ::gallery ...:: text tag automatically: the insertion window uses it, and any element still present in a post or page is converted when it is saved. A warning is shown on the settings page.

LC Lightbox LITE

When the viewer is enabled, clicking an image opens LC Lightbox LITE. Images from the same gallery are grouped so visitors can navigate previous/next. The bottom bar can display thumbnails, and the interface provides features such as zoom, slideshow, fullscreen and touch controls depending on the device and available options.

The navigation thumbnails use Dotclear's s thumbnail when available, producing a sharper result than the sq thumbnail. If s is unavailable, Tiny Gallery Insert falls back to the thumbnail selected for the gallery.