Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use LightBox with two different imageUrl #93

Open
GaboDot opened this issue Jan 24, 2019 · 0 comments
Open

Use LightBox with two different imageUrl #93

GaboDot opened this issue Jan 24, 2019 · 0 comments

Comments

@GaboDot
Copy link

GaboDot commented Jan 24, 2019

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.

@GaboDot GaboDot changed the title Use LightBox with different imageUrl Use LightBox with two different imageUrl Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant