-
☆ A M B ☆
- 3,112 Posts
Just add this at the top of your slideshow template:
<a href="javascript:;" onclick="history.go(-1);">Back</a>
EDIT...
Uhmm... you’re talking about previous page?
That’s tricky, because the javascript override the browser’s history path.
Is he missing the menu?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
What I mean is if somebody starts on say, the ’About Us’ page, goes to the ’Gallery’ page, clicks on a couple thumbnails rather than ’play slideshow’, then hits the browser’s ’back’ button. It takes them to the last image they clicked on in the slideshow, but would it be possible instead for the browser to go back to the ’About Us’ page? Disabling the ’history’ function makes this happen if they just watch the slideshow, but not if they click on a thumbnail to view that image in the slideshow box.
Does that make it more clear? If it’s too complicated, that’s probably OK, but I just thought I’d check if you know how to do this. I think adding the (-1) like you suggested wouldn’t work because the number of clicks could vary. It would somehow need to set the history to ignore any hash tag changes after ../gallery.html so it doesn’t go to ../gallery.html#2 or whichever image was the previous one, but to the previous page prior to arriving at ../gallery.html at all.
Thanks again for awesome follow-up on supporting this mod!
-
☆ A M B ☆
- 3,112 Posts
open the galleriffic.php, and disable the
jquery.history.js request.
<?php
if ($ss_config=='example-5') {
$modx->regClientStartupScript(E2G_SNIPPET_URL.'slideshows/galleriffic/js/jquery-1.3.2.js');
// Optionally include jquery.history.js for history support
// $modx->regClientStartupScript(E2G_SNIPPET_URL.'slideshows/galleriffic/js/jquery.history.js');
$modx->regClientStartupScript(E2G_SNIPPET_URL.'slideshows/galleriffic/js/jquery.galleriffic.js');
$modx->regClientStartupScript(E2G_SNIPPET_URL.'slideshows/galleriffic/js/jquery.opacityrollover.js');
}
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
Lol.
I’m just lucky, knows what to do.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Many many thanks for all the work to bring this gallery module - and specifically for my needs - galleriffic - into MODx. I have been working for many months with a customization (mostly CSS tweaking, but also other tweaks to make it do what I needed) of galleriffic. But couldn’t get it into MODx because of the hash location url rewriting problem. So I was about to run the galleries outside of MODx to get this particular site up and running. Discovering your E2G module - well, makes life good.
Here’s my last missing piece - I hope you can help. I’m using galleriffic - version 5. Evo 1.0.4. Server Linux/Apache/PHP 5. I’ve figured out how to tie in my CSS, and what I did to make the XHTML output what I wanted with galleriffic and now E2G.
What I don’t know how to do is how to NOT have thumbnails generated. I need to use "custom" thumbnails created. This is a very specific request from not only this client of mine (an illustrator) but also from other clients of mine (also artists). They want the thumbs to be specific parts of the image - some of my clients give me both the large original image and then the image they want used for the thumb.
Using galleriffic outside MODx I just hardcoded these in, using p1, p2, p3 ... for the large images, and t1, t2, t3 ... for the thumbs. I’m not sure this will work now - nor does it make it possible for the clients to add / delete images from the galleries. Which is the hope.
These are all professional artists - well-versed in photoshop. I tell them max large image size width and height and they’re ok with that - and I can tell them thumbs need to be 75px x 75px etc. But I don’t know how to use these "custom" thumbs and not have them overwritten by the ones generated by E2G. There is the setting for "original" for the large images - but not for the thumbs.
Any thoughts or direction you can give me on this would be wonderful and save me a lot of head banging and client gnashing.
-
☆ A M B ☆
- 3,112 Posts
@jsunderlin,
currently, you can’t.
i’ll think a way out.
gimme time.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
hmmm... well, thanks. I may have to run the galleries outside MODx for now then. I’m sure there will be a way to manage this eventually.
Thanks again for all the work you’ve done with this - sorry to add on yet another request!
I haven’t tried this, but couldn’t you just upload new thumbnails (with the same size, filename, etc.), overwriting the old ones?
MattC
-
☆ A M B ☆
- 3,112 Posts
@mconsidine,
no.
The thumbnails are stored inside _thumbnail folder, which will always be deleted when you ’Clear Cache’.
All of ’em.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.