Project

General

Profile

Actions

Feature #3095

open

Implement Streams/gallery stream type and tool

Added by Gregory Magarshak about 1 year ago.

Status:
New
Priority:
High
Category:
-
Start date:
04/14/2024
Due date:
05/27/2024 (about 12 months late)
% Done:

0%

Estimated time:

Description

There is a stream type called Streams/gallery, which can act as a category to which Streams/image and Streams/video streams are related. In its attributes, it would contain basic information for the Q/gallery tool to render.

The Streams/gallery tool would contain a Q/gallery tool render images and videos in accordance to the attributes.

The Streams/gallery tool would also have an option editable: true to allow the user to edit the gallery by clicking on it. This would open dialog, where the Streams/gallery tool would render a template named Streams/gallery/edit, and the title, etc. should be taken from dialog option, which is an object (the template and the option can be overridden by some external code). Note that dialog titles can be internationalized by passing [textfilename, [pathToText]] instead of hardcoding a specific string.

Anyway, the dialog would contain Streams/related tool which would show all the images and videos related by "Streams/image" and "Streams/video" relation type. It would also have creatable: true and sortable: true options, allowing the user to add new images/videos and change the order in the gallery.

The Streams/image/preview and Streams/video/preview would allow the user to set the title of each image or video, underneath it. This title would be shown in the gallery as a caption. Allow the user to drag a rectangle on the actual image, to set where it the text should appear, and also have a <select> for user to modify the font from a list of fonts in fonts option, which is an array of font-family names.

Then, save this information in the attributes, so the Q/gallery tool can render it properly.

No data to display

Actions

Also available in: Atom PDF