Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2014-05-08 11:46:07

nslatiner
New User
Registered: 2014-05-08
Posts: 1

Creating an inner navigation using the API

Hello,
I've used the thirdlight API to build an image gallery populating it from a smart folder in our collection. In the created gallery each image gets it's own single page. At the moment, if a user is on an image page, he needs to go back to the main gallery page in order to access another image. I would like to implement a simple inner page navigation system with a "Next" and "Previous" links on each image page. Looking at the API, I couldn't find such a method, and I do not wish to call the entire collection on each single page to return the next and previous image IDs.
Any idea on how could I accomplish this?

Thanks,
Nick

Offline

#2 2014-05-08 12:14:31

ben
Third Light Staff
From: Third Light
Registered: 2013-06-06
Posts: 79

Re: Creating an inner navigation using the API

Hi Nick,
There isn't an API method that will return next/previous given a particular asset and container. So, I think you will need to cache the list and use that to find the next and previous. You could do this on your own server on maybe in the browser using local storage.

Cheers
Ben

Offline

Board footer