Slideshow with custom links

36 views
Skip to first unread message

Folibis

unread,
Nov 28, 2012, 10:42:00 PM11/28/12
to rig...@googlegroups.com
I want to open LIghtbox slideshow with custom set of links.

Currently I receive JSON object like this:
{
    {title : 'some title1', path : 'path/to/file1'},
    {title : 'some title2', path : 'path/to/file2'}
}

How can I say to Lightbox to open only these links?

Nikolay Nemshilov

unread,
Nov 30, 2012, 8:12:05 AM11/30/12
to rig...@googlegroups.com
Hey,

Sorry for a lag with the response.

Generally there are no such functionality out of the box, but I can see at least two simple options

1) Generate a bunch of A elements from your JSON data, stash them in some hidden block of your document and Lightbox should hook 'em up automatically
2) Replace this method with something of your own. https://github.com/rightjs/rightjs-ui/blob/master/src/lightbox/lightbox/pager.js#L68-L76 I think it should also work if you replace the links with your urls or something like that


--
Thanks,
Nikolay

--
You received this message because you are subscribed to the Google Groups "RightJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rightjs/-/D6HvcrfkU3sJ.
To post to this group, send email to rig...@googlegroups.com.
To unsubscribe from this group, send email to rightjs+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rightjs?hl=en.

Reply all
Reply to author
Forward
0 new messages