About file mixins.less - probably, you have relative url to it(but because you are using path url format, you should use absolute path ("/path/to/file" not "path/to/file").
About "/index.php/ajaxUpload/gallery_id/4", it also seems to be wrong…
Check:
urlManager rules, does there is correct rules for gallery controller?
‘controllerRoute’ property of gallery manager, does it points to gallery controller?
Это путь должен вести к контроллеру из расширения(GalleryController), путь зависит от того куда подключен контроллер. В приведенном примере контроллер подключен как gallery в controllerMap модуля admin.
Question was about controllerRoute in widget properties. To what controller it should point? And where that controller should be?
Answer was:
This route should point to GalleryController from extension. Actual route depends where controller is connected, in this example controller is added as "gallery" in controllerMap for admin module.
I also inserted ‘controllerMap’ array into config/main.php and i added a ‘controllerRoute’ array into the widget call at the view file like this and it works now.
Я так понимаю данное расширение используется исключительно для загрузки изображений не сервер? Выводом этих изображений оно не занимается? Я имею ввиду как галерея? По крайней мере мне не удалось добиться этого. Например в панели управления я загружаю изображения, а как их потом вывести на фронтальной части, исключительно сторонними расширениями, или писать свои?
I am trying to put into the front-end my galleries using the above code. I successfully attached the gallery to my model, so i can upload photos to my model entities. But in my case $model->galleryBehavior is a non-object and therefore my error message is " Call to a member function getGalleryPhotos() on a non-object in /home/…/themes/soccer/views/site/home.php on line 127"
I’m not an expert of using behaviors so please help! Thank You
I don’t understand what /admin/gallery/ is (I don’t have a need for the admin module), and the documentation contains little information about what a controllerMap is or how to set it up. I also don’t understand where to set up the upload directory.
This extension looks promising. Thanks for sharing.
There doesn’t seem to be a way to work with images once they’ve been uploaded. I hit refresh and get the basic gallery navigation (add, select *, edit, etc…) Is this the expected behavior? Does this extension facilitate removing images, editing descriptions, showing a gallery, and such?
I’m not receiving any errors, there’s just no way to view or edit the images. They exist in the database and directory structure. Is is by design that we should implement viewing and editing on our own?
Widget has following features: upload, removal, editing description and rearrange images in gallery.
Do you have twitter bootstrap (css and js) on page with gallery manager widget? (may be, because of that you do not see all controls).
About image viewing: this widget intended only for gallery management. So if you need only show images on the site without editing – you need to implement it, there are examples how to do this above in thread.
On initial upload the files appear with the file sorter, but if I add a gallery, navigate away, and then return the gallery controls show, just no images. I’ve implemented as an extension, and am calling from post/gallery. When I visit /post/gallery/1, I expect to see the gallery images but all I receive is ‘a no records returned’ notice.