Galleria JS - History Plugin with permalinks

Posted on 2011-05-12
Last Modified: 2012-06-27
Hi everyone,

I'm using Galleria JS together with history plug-in:

What it does is as you browse through the gallery, it applies #/0,1,2,3,4 to the URL.

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.
Question by:Aidam-Unlimited
    1 Comment
    LVL 36

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    Suggested Solutions

    Title # Comments Views Activity
    network + 7 57
    json example 39 76
    Conditional Link URL - Easy Question 4 31
    Please explain a jQuery promise 5 20
    Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    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…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now