2nd Gallery doesnt work

  • abloch01
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 4 months ago #21443 by abloch01
Hi,

I'm working on my hotelwebsite www.chawenglakeviewresidence.com at the moment and the first gallery I did for Accommodations-2bedroom apartments works fine but the second one I tried to do for the 2brvilla simply doesn't show any photos.
I just saved the first gallery as a copy and changed all the images and folder options to show the 2brvilla photos but no luck. Please help.

Tx.

Andreas

Please Log in to join the conversation.

More
12 years 4 months ago #21447 by ivan.milic
Replied by ivan.milic on topic 2nd Gallery doesnt work
Dear customer,
that component can not have two instances on same page.

Please Log in to join the conversation.

  • abloch01
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 4 months ago #21450 by abloch01
Replied by abloch01 on topic 2nd Gallery doesnt work
So how can I fix it? Somehow I need to display my hotel units.

Please Log in to join the conversation.

More
12 years 4 months ago #21458 by ivan.milic
Replied by ivan.milic on topic 2nd Gallery doesnt work
If you check the code of component, look at default.php and style.css

you would see that css/jquery selectors are related to elements id's. Few crucial ones. You need to generate unique key to append to instance id-s like:

...
$unique_id = rand(12222);
.....
jQuery("div#hot-joomla-gallery-<?php echo $unique_id;?>").slideViewerPro({
....
<div id="hot-joomla-gallery-<?php echo $unique_id;?>" class="svwp">

Please Log in to join the conversation.

Time to create page: 0.158 seconds
Powered by Kunena Forum