Updated for gpEasy 2.1
While the information on this page is still valid, gpEasy 2.0 introduced "sections" to pages. Now you can add a gallery to any page as a "section." See Edit Page for more information on sections.
Creating galleries in gpEasy can be accomplished via the Page Manager or more simply as of gpEasy 2.0 just add a gallery section to a page.
In the Page Manager select insert file and a window will pop-up prompting you to choose the type of file you want to create. After creating your gallery, or inserting it as a section, navigate to the page and click the edit button that appears on hover. Insert images and/or upload new images and apply captions by clicking the caption icon when hovering over images when editing the gallery.
While the following is still possible it is much easier to use gpEasy 2.0's new sections for File Inclusion or to add a gallery right inside of a page as a new section.
gpEasy 1.7 introduces the ability to use plugins to style galleries. All that is needed is a plugin that has the styling for galleries. Once loaded the plugin styles will override the default gallery styles.
Note: as of gpEasy 2.0 if you insert a gallery as a section in a page you do NOT need to do the following to enable Colorbox. It is automatically enabled on any and all pages that have a gallery section. Furthermore, if you wish to have some images open up in Colorbox on a page but do not want a gallery on that page, just add a section as a gallery and delete all images in that gallery section and save it. This will enable Colorbox for the page. Then link your images appropriately and add the necessary name="gallery" rel="gallery_gallery" to the link as discussed below and they will open in Colorbox.
<?php common::AddColorBox(); ?>into your template before the getheader call:
<?php gpOutput::GetHead(); ?>
<a href=".././data/_uploaded/image/your-image.jpg" name="gallery" rel="gallery_gallery"> <img alt="" src=".././data/_uploaded/image/your-image.jpg" style="width: 100px; height: 100px; " /></a>
Find out more about our Provider Spotlight