PDA

View Full Version : Creating Link from Galleries


acwilliams
May-01-2005, 11:12 AM
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...

Nikolai
May-01-2005, 11:43 AM
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...
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:

< form >
< input type="button" value="Back" onclick="history.back()" >
< /form >


which would result into smth like follows
<form>
<input type="button" value="Back" onclick="history.back()">
</form>

HTH

onethumb
May-01-2005, 11:51 AM
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...

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