Skip to content

Use LightBox with two different imageUrl #93

Open
@GaboDot

Description

@GaboDot

Hi, first congrats for this awesome plugin, it's exactly what I was looking for.

I already configured it like this:

biokiriApp.config(function(LightboxProvider){
LightboxProvider.templateUrl = site_root + 'assets/templates/lightbox.html';
LightboxProvider.getImageUrl = image => { return site_root + 'assets/images/promos/' + image.imagenPromo; };
});

I'm using it in different views (admin module - products, offers, etc) and I don't know how to get it work because the images for each view are in different locations:

location 1: 'assets/images/promos/'
location 2: 'assets/images/products/'

So, is there any way to setup different images routes?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions