Hey folks,
I want to use maxigallery to manage the upload and tagging of images on the backend of a site I’m building. I’m already using ’managermanager’ and ’mg_backend_manager’ to embed maxigallery picture manager in the manager interface. I have a sweet, simple jquery image rotator that I’d like to use, but I’m having trouble pulling the image gallery into it.
How can I target the gallery (should I be using tv’s?), or should I be trying to edit the actual maxigallery templates (if this is the case, how do I start?)?
thanks.
Craig
Quote from: mediassassin at Apr 22, 2009, 05:48 PM
How can I target the gallery
What do you mean by this..? Target the images of a gallery with your jquery script or what? There are css classes in the elements of the default templates what you can choose to use..
Take for example this maxigallery output:
<div class="thumbscontainer">
<ul class="thumbs">
<li>
<a href="/assets/galleries/1/1.jpg" rel="lightbox[maxigallery]" title="title - description">
<img src="/assets/galleries/1/tn_1.jpg" class="thumbnail" title="title » Click to zoom ->" alt="title » Click to zoom ->" />
</a>
<p style="width: 130px;">
title
</p>
</li>
</ul>
</div>
To select the li elements for example with jQuery, you would do something like: $(".thumbs > li")
Quote from: mediassassin at Apr 22, 2009, 05:48 PM
or should I be trying to edit the actual maxigallery templates (if this is the case, how do I start?)?
The templates are meant to be edited. They are just default templates. You can do a chunk in MODx with the contents of the default template and modify it how ever you like. Then in your snippet call, define that chunk with the appropriate template parameter.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
If you want all the images from the gallery, do not use the pictureview display type.
You can do a custom galleryPictureTpl to list the normal images and not thumbnails by removing the "tn_" prefix from the picture file name in the template.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Thanks Doze, I actually found another post from someone who was doing pretty much the same thing as me, and just copied their code. I would have used smoothgallery but I have jquery on my page and mootools killed it.