Creating Link from Galleries
acwilliams
Registered Users Posts: 1 Beginner grinner
Does anyone know how to create a link from a gallery?
I would like like visitors to be able to link back to the site that they came from...
I would like like visitors to be able to link back to the site that they came from...
0
Comments
Ain't ALL the browsers already have the BACK button (and Return key on the keyboard?) Why waste your valued screen real esate for something which is ALWAYS there for free?
Otherwise just google for "javascript back", you'll find a lot of code snippets, like this one:
which would result into smth like follows
<form>
<input type="button" value="Back" onclick="history.back()">
</form>
HTH
The API exposes the gallery URLs, so you can easily make a call using REST or XML-RPC if that's what you're looking for.
Alternatively, you can build the URL manually. The form is always of:
[PROTOCOL]://[HOSTNAME]/gallery/[ALBUMID]/{PAGE}/{IMAGEID}/{SIZE}
Where:
PROTOCOL = http
HOSTNAME = NICKNAME.smugmug.com OR www.smugmug.com OR custom domain
ALBUMID = the # of the gallery
*PAGE = the page #
*IMAGEID = the specific photo #
*SIZE = what size of photo is desired.
{} * = optional
Don