i have uploaded just four images , but when i click one of them the left right nav bars in the lightbox script says there are 7 ! and i keep clicking past four and it repeats my first image ... its very strange.
any ideas?
looking at my source code, i have noticed this is in there twice
<script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>
<script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>
is that causing the problem ? ?
Do you have link to that site? You can PM me with site details if you do not wish to share it public.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
I just noticed it getting called twice on one of my pages... okay, noticed it before but was "focusing" on another issue at the time and couldn’t be bothered with more than one challenge at the time
|
Identity Developments delivers SEO focused web design and web presence services
- it's not about websites, it's about your identity. |
-
MODX Staff
- 12,272 Posts
double registering of the media path should not be a problem.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
The problem was that he was using MaxiGallery and MaxiGallerySolo at the same page and both were set to use Lightbox v2. They both use the same rel attribute name, so ligthbox script collected all pictures to the same set. Fix was to rename the rel attribute to something different in MaxiGallerySolo..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."