[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Galleria JS - History Plugin with permalinks

Posted on 2011-05-12
1
Medium Priority
?
834 Views
Last Modified: 2012-06-27
Hi everyone,

I'm using Galleria JS together with history plug-in:
http://galleria.aino.se/
http://bit.ly/kJ5TlU

What it does is as you browse through the gallery, it applies #/0,1,2,3,4 to the URL.
Example: http://bit.ly/kDfxFf

The problem is that this is not a permalink; first photo has always #/0 so when I upload latest photo, it gets #/0 and older photo goes to #/1,2,3 and so on.

Solution could be to let History plugin create a permalink, based for example on <img title=""> value, or it can be any random but permanent number.

I know this is a bit difficult question but does anybody know how to achieve this?

Thanks in advance.
0
Comment
Question by:Aidam-Unlimited
1 Comment
 
LVL 36

Accepted Solution

by:
Zyloch earned 2000 total points
ID: 35759106
No one else has attempted to answer this question, so I will make a few comments. Permalinks based on a given image tag is something that needs to be added to the history plugin. From a look at the code, it appears to be a nontrivial change that might take a bit of time and touch many functions. No one probably has had the time to look at it and make the change, which is likely why no one has answered this question.

Barring this solution, a less attractive one is to have your server-side input images in the opposite order and having Galleria load the last image; this way all images will keep their IDs. The down side is that the thumbnail slider will then have to move from right to left.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question