Each picture in maxigallery is ultimately binded in to one document that has [[MaxiGallery]] snippet call.. but with &view_gallery and &manage_gallery parameters you can have pictures from one document displayed in another document. And using ditto for example you can build centralized views to manage all your galleries.
Firstly, is there a one-to-one relationship between galleries and MODx documents? That is, is each gallery its own MODx document containing a [[MaxiGallery]] snippet call? Is it recommended/desirable that each gallery be its own manager or should there be ONE "manager" document for all the galleries on the site?
Users cannot affect to the snippet parameters. But you can do a gallery with lightbox embed type in some document, then do another document with &view_gallery parameter to view that gallery and use popup as embedtype. In your website, link to these documents respectively.
Secondly, is it possible to allow the USER to decide whether they want to use "popup" or "lightbox" etc without replicating the PHOTOS multiple times .. in other words have one document for each "type" of gallery, but then have them all refer to the same collection of photos.
Thirdly, how do I convince the gallery to "re-compute" dropshadows for existing photos that were imported when dropshadow was not used.. this came up because I was trying the options one-by-one ...[/Quote]
You can’t currently, sorry. The image handling is not that good currently as all image processing are done upon image upload. At some point, I am going to start using phpThumb for the image handling and then you will be able to change the filters at any time.
Quote from: gfroyle at Nov 16, 2006, 04:29 AMThere is/was a bug in MODx that did not register the javascripts on first visit to the page if snippet was called uncached on a uncached page. That results that if using slidebox or lightbox to display images, first visitor gets the images opened just in a blank window. I’m not sure if this is fixed in 0.9.5 yet, but that’s why you should use cached snippet call in a uncached page.
Finally, the docs for MaxiGallery say (in bright red) - you must use cached call on uncached page, but the demosite (Scotty Delicious) gives calls with [! .. !] - it seems to make no difference to my experience whether I use [! .. !] or [[ .. ]], though setting the page itself to uncached was crucially important!
Quote from: gfroyle at Nov 16, 2006, 04:29 AMUsers cannot affect to the snippet parameters. But you can do a gallery with lightbox embed type in some document, then do another document with &view_gallery parameter to view that gallery and use popup as embedtype. In your website, link to these documents respectively.
Secondly, is it possible to allow the USER to decide whether they want to use "popup" or "lightbox" etc without replicating the PHOTOS multiple times .. in other words have one document for each "type" of gallery, but then have them all refer to the same collection of photos.
That is what the &view_gallery=`xxx` option does, it uses the gallery attached to the page you specify.
Embedded display type in this situation means that the gallery is embedded to just on that "overview" and all images are popuped when viewed, either using normal window popup, slidebox or lightbox. If not using embedded display type, when you click on a image in the gallery, it moves on another "view" that displays the image. Maybe better wording could have been used, you can suggest something if you want. Currently I’m thinking to do a shildeshow display mode too and I’m wondering how to parametrize it.. I’m thinking &display=`embedded` &embedtype=`slideshow` and then there will be extra parameter that is it a timed slideshow or not.. that view mode will then be "truly" embedded I think..
PS Can you explain the choice of the word "embedded" for the display type - to me "embedded" means "included inside" and so I expected embedded displays to just appear inside the existing pages. But both lightbox and popup create new areas/windows to do their photo display, which seems to me the opposite of embedded! (This is not important, but it keeps striking me as odd and suggests that the word embedded is being applied to something other than the display...)
[+maxigallery.config.display:is=`pictureview`:then=` [+maxigallery.managebutton:isnot=``:then=` <center>[+maxigallery.managebutton+]</center> <br /> `+] `+] <div class="picturecontainer"> <p class="navigation"> [+maxigallery.counter:is=`1`:or:is=`0`:then=` [+maxigallery.strings.previous+] | `:else=` <a href="[+maxigallery.previous_pic_url+]" alt="[+maxigallery.index_url+]">[+maxigallery.strings.previous+]</a> | `+] <a href="[+maxigallery.index_url+]" alt="[+maxigallery.index_url+]">[+maxigallery.strings.index+]</a> | [+maxigallery.counter:is=`[+maxigallery.total_pics_count+]`:then=` [+maxigallery.strings.next+] `:else=` <a href="[+maxigallery.next_pic_url+]">[+maxigallery.strings.next+]</a> `+] </p> <p class="picturecount">[+maxigallery.strings.picture+] [+maxigallery.counter+] / [+maxigallery.total_pics_count+]</p> [+maxigallery.total_pics_count:isnot=`0`:then=` <div class="picture"> [+maxigallery.big_img_linkstyle:is=`slidebox`:then=` <a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]"> `+] [+maxigallery.big_img_linkstyle:is=`lightboxv2`:then=` <a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]"> `+] [+maxigallery.big_img_linkstyle:is=`slimbox`:then=` <a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]"> `+] [+maxigallery.big_img_linkstyle:is=`popup`:then=` <a href="javascript:void(0);" onClick="javascript:openWindow('[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]',[+maxigallery.picture_height_big+],[+maxigallery.picture_width_big+],'gallery');" title="[+maxigallery.strings.click_to_open_original+]"> `+] [+maxigallery.big_img_linkstyle:is=`external`:then=` <a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="external" title="[+maxigallery.strings.click_to_open_original+]"> `+] [+maxigallery.keep_bigimg:is=`0`:then=` <a href="[+maxigallery.index_url+]" title="[+maxigallery.strings.click_to_go_back+]"> `+] <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="imageview" alt="[+maxigallery.strings.date+] : [+maxigallery.picture.date+]" /> </a> </div> `+] [+maxigallery.picture.title:isnot=``:then=` <p class="title">[+maxigallery.picture.title:htmlent+]</p> `+] [+maxigallery.picture.descr:isnot=``:then=` <p class="description">[+maxigallery.picture.descr:htmlent+]</p> `+] </div>
<div class="managepicturecontainer"> <input type="hidden" name="[+maxigallery.fieldnames.pictureid+]" value="[+maxigallery.picture.id+]"/> <input type="hidden" name="[+maxigallery.fieldnames.modified+]" id="[+maxigallery.fieldnames.modified+]" value="no"/> <div class="managepicture"> <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" target=_new> <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" alt="[+maxigallery.strings.click_to_zoom+]"/> </a> </div> <div class="shortfields"> ID: [+maxigallery.picture.id+] <br /> [+maxigallery.strings.delete+]: <input type="checkbox" name="[+maxigallery.fieldnames.delete+]" value="yes" title="[+maxigallery.strings.check_to_delete_this_picture+]"/> <br /> [+maxigallery.strings.hide+]: <input type="checkbox" name="[+maxigallery.fieldnames.hide+]" value="yes" title="[+maxigallery.strings.check_to_hide_this_picture+]" onClick="document.editform.[+maxigallery.fieldnames.modified+].value='yes'" [+maxigallery.picture.hide:is=`1`:then=`checked="checked"`+]/> <br /> [+maxigallery.strings.position+]: <input type="text" size="3" name="[+maxigallery.fieldnames.position+]" id="[+maxigallery.fieldnames.position+]" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'" value="[+maxigallery.picture.pos+]"/> </div> <br class="clearboth"/> [+maxigallery.strings.title+]: <br/> <textarea name="[+maxigallery.fieldnames.title+]" rows="2" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.title:htmlent+]</textarea> <br /> [+maxigallery.strings.description+]: <br/> <textarea name="[+maxigallery.fieldnames.description+]" rows="4" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.descr:htmlent+]</textarea> <br /> <hr /> </div>