Free
Download the package from the manager of your site.
How to download?
How to download?
Warning! This package requires MODX not less than
2.3
!
Component for uploading images in ms2Gallery from the frontend. Works great together with Tickets.
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.
Call {'!ms2guploader' | snippet: ['uploadLimit' => 4, 'source' => 3]} in tpl.Tickets.form.create and tpl.Tickets.form.update
The component requires ms2Gallery.
Discuss the component in the MODX.PRO community.
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
- Первый релиз