-
- 7 Posts
Hello:
I am new to modx and I am building my first site with this CMS. Could someone tell me how can I zoom an image inside an article with java (lightbox)? Honestly dont get it. Thank You.
1. It’s not Java, it’s Javascript. A whole different thing. This isn’t just a quibble, it really is a totally different thing. Stupid name; it’s actually ECMAScript but that isn’t as fancy a name.
2. Choose your javascript library. I use JQuery almost exclusively for everything.
3. Choose a plugin or script to do what you want that works with your chosen library.
3. Follow the directions for the plugin or script you’ve selected.
All you’ll need to do is to make sure that MODx will generate the HTML structure the javascript wants, and add the various <script...></script> tags to include the javascript files either to your template or to the content of the resource, just as you would in any HTML page. Since Javascript works in the browser and MODx works on the server, MODx doesn’t care what javascript you run.