I’m building a web site for clients with little html or ftp knowledge. I’m looking for ways to make the process of including images within ditto organised articles as easy as possible, and I was wondering if MaxiGallery is suitable for this? Some articles will have one image, a few will have more, most will have none. Is there an easy way to use MaxiGallery for the uploading/resizing of images into different versions (thumb, med, large etc) and associate those images with certain articles? The less editing of code by the client the better.
I know this may be a tall order, but I don’t really know MaxiGallery’s capabilities outside of building traditional gallery type pages.
Thanks for any help you can offer!
You can use MaxiGallery in the documents and make it not show the images (by using custom galleryOuterTpl that just has the manage pictures button), then create another snippet that takes just "pic" as parameter and uses:
return $modx->runSnippet(’MaxiGallery’, array(’pic_query_ids’ => $pic, ’display’ => ’embedded’, ’embedtype’ => ’slimbox’, ’galleryOuterTpl’ => ’chunkname’, ’pictureTpl’ => ’chunkname’));
to run MaxiGallery. Then create custom galleryOuterTpl to that with just maxigallery.pictures placeholder and pictureTpl what has just the image (with slimbox style link).
Then your customer can first upload pictures to the document using the manage pictures button and they are not showed anywhere yet, then he can place the images to the article where he wants using [[YourSnippet? &pic=`<maxigallery_pic_id>`]].
"He can have a lollipop any time he wants to. That's what it means to be a programmer."