Well the problem is when it is in a subdir then this does not work, since you need the subdir in front of it, but when it changed you need to edit them manual again :(
On Mar 3, 6:21 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > if you prepend the image path with a '/' like '/img/...' it will trace > back to the web document root and hit the right directory every time. > > So wherever you see images/ in the .js file, change it to /img or > whatever you want. > > On Mar 3, 12:11 pm, "Mech7" <[EMAIL PROTECTED]> wrote: > > > The problem is it does not work like css where it links relative from > > the file, but instead it writes html via dom in the document when > > needed.. so the path will link from a different directory depeding on > > which controller or page i am on :( > > > On Mar 3, 6:06 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > > > > If you put the lightbox images in the js folder (where your > > > lightbox.js is) then they should work. A bit messy perhaps, but > > > otherwise just edit the javascript file yourself to point to the > > > correct location (ie ../img/ ) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
