Hi,
I want the number of images to be displayed as follows:
’prev 1/30 next’
So the ’1’ will increment everytime the user clicks next and a new picture is displayed.
My code for this is:
<div class="port-right">
<a href="javascript:prevPic();">prev</a> [+maxigallery.counter+] / [+maxigallery.total_pics_count+] <a href="javascript:nextPic();">next</a>
</div>
This displays above the image on the right.
The [+maxigallery.total_pics_count+] correctly display the total number of pictures but the first number does not increment with each picture.
I’m not sure why this isn’t working correctly...anyone any suggestions?
Thanks
www.9thwave.co.uk
WEB | DESIGN | PRINT
Hmmm... just a quick idea off the top of my head... I wonder if your Maxi call might need to be cached to get that working, such as
[!MaxiGallery....!]
.. as opposed to [[MaxiGallery....]]
... or maybe the page itself might need to be cached? Just a guess.
Dave
Thanks for the response...my Maxi call is already [!MaxiGallery....!] and clearing the cache doesn’t have any effect.
do i have to add anything to the call to get it to work???...i’m assuming not but here’s the call just in case anyone can help:
[!MaxiGallery? &pictureTpl=`mgPictureAdvanced` &display=`pictureview` &max_pic_size=`0` &max_thumb_size=`60x60` &js=`assets/templates/new/js/js-setupAdvanced.js` &manage_target=`15`!]
[!MaxiGallery? &galleryOuterTpl=`mgGalleryOuterAdvanced` &galleryPictureTpl=`mgGalleryPictureAdvanced` &manage_target=`15`!]
My chunk for mgPictureAdvanced is:
<div id="image-top">
<div class="port-left">
<a href="javascript:history.go(-1)" title="return to previous" class="transition">Return</a>
</div>
<div class="port-right">
<a href="javascript:prevPic();">prev picture</a> [+maxigallery.counter+] / [+maxigallery.total_pics_count+] <a href="javascript:nextPic();">next picture</a>
</div>
</div>
<div id="picturecontainer">
<img id="maxImage" src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" alt="[+maxigallery.picture.title:htmlent+]" />
</div>
I’m not using any thumbs, just a next and previous link for the big image.
Thanks
www.9thwave.co.uk
WEB | DESIGN | PRINT
I see nothing wrong in your template.. If you are not already running the latest test version, maybe you could try to update to it. I have added and fixed some placeholders in the latest version.. you can find it from the sticky topic, attached to the first post.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
I’m full of random ideas.
I don’t use the Sort Pictures button that much - although it does work for me, I’m wondering if you have a Javascript anomaly or something maybe that is borking it?
Instead of that button, you could try putting numbers in the Position field for each picture, and then Save. This has always worked for me. But maybe you tried that already.
Cheers, Dave
Hi Doze/Samba,
Thanks for your suggestions.
I have uploaded the new maxigallery but still no joy. There isn’t any new snippet code with that new MG version is there?
I have isolated the various javascript files and there doesn’t appear to be any conflicts.
Samba, could you explain what you mean by replacing the button (do you mean the previous and next links?) and adding the numbers in the position field?
Doze, have you any other possible suggestions i could try?
Thanks for your help
J
www.9thwave.co.uk
WEB | DESIGN | PRINT
Sure, Janice,
Let’s say you’ve set up your Maxi page, you’re logged into the Manager, and you view the page. You click your Manage Pictures button, and now you see your pics and their input fields. All totally familiar, right?
At this screen, I sometimes DON’T click "Sort Pics". Instead I figure out my desired order, and stick a number in "Position" next to each pic. Then I click Save Changes. Always works for me. And sorry if you’ve already tried it.
Hi Samba,
Thanks for that. I just don’t get how the numbers will then display like i want them to though i.e 1/20.
Unless you’ve misunderstood what i want to do?
Cheers
www.9thwave.co.uk
WEB | DESIGN | PRINT
Ah, indeed, I haven’t understood at all. I thought you were simply referring to the order of pics as they appear in your gallery, and that you were having trouble getting them into order.
If you’re referring to getting numbers to display under or near the gallery, like "2 of 20" or that sort of thing, I don’t have any particular insight on that, except to experiment with the different gallery types, and see how their numbering goes. I find slimbox to be my usual favorite. If that doesn’t work, I’m guessing that you may need to play with edting the templates, as I did yesterday for a site. There. I officially expire.
Good luck.
thanks anyway samba.
I have never actually looked the templates in maxigallery, i’m using a bespoke template and javascript fade in for the image transitions.
Think i might have to give this up for now though and perhaps take a look at one of the templates if it contains an example of this pic_count method.
www.9thwave.co.uk
WEB | DESIGN | PRINT