Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Picture pop-ups in content block


concrete5 contains a bunch of add-ons by default and a lot more can be downloaded or bought at the marketplace. While you definitely find a lot of really nice add-ons, sometimes you can easily rebuild things with just a few small tricks.

Let's assume you've got a blog style page where you have some pictures in the text. It would be nice if you could click on them like a gallery, wouldn't it?

jQuery is the preferred JavaScript library of concrete5 and is included by default. It usually makes sense to use jQuery based libraries to avoid any conflicts between JavaScript libraries. Using jQuery, MooTools, and YUI at the same time works, but you have to make some modifications which can be time consuming and annoying. To keep this easy, we're going to use jQuery lightbox written by Leandro Vieira which you can download at:

http://leandrovieira.com/projects/jquery/lightbox/.