Free
Download the package from the manager of your site.
How to download?
The author
but1head
Packages
3
Downloads
3 090
Автор дополнения
Packages
3
Downloads
3 090
Version 2.0.0-pl
Release date 04.14.2017
Downloads 134
Views 1 431
Warning! This package requires MODX not less than 2.3 !
Component for uploading images in ms2Gallery from the frontend. Works great together with Tickets.

Features


  • upload photos,
  • sort photos,
  • delete photos.

Logic of work


When creating a resource, all images fall into the assets/resources/0/{$ user_id} folder, when saving a resource, all photos uploaded to it are transferred to a folder in the assets/resources/{$ resource_id}/ folder. Fully supports creating previews from ms2Gallery.
The component is not tied to Tickets, you can use your forms, the snippet has the parameter getParam through which the resource id is defined.

Installation


Call {'!ms2guploader' | snippet: ['uploadLimit' => 4, 'source' => 3]} in tpl.Tickets.form.create and tpl.Tickets.form.update

Settings


  • getParam (tid) — parameter for definition of resource id,
  • source — source file id,
  • uploadLimit (4) — limit on uploading photos,
  • thumsize — size of the thumbnails of the uploaded photos.

The component requires ms2Gallery.

Discuss the component in the MODX.PRO community.

2.0.0

  • Множество исправлений
  • Оптимизация под ms2gallery 2.0+

1.5.0

  • Правка всех известных багов

1.0.9

  • Теперь размер превью указывается автоматически, можно вручную
  • Правки багов
  • Plupload обновлен до 2.1.9

1.0.6

  • Исправление багов

1.0.5

  • Первый релиз