Gallery Pro
Gallery Pro is a Bric for Blocs for Mac that builds a gallery from photos stored in a folder on your server. Choose from four layouts and click a photo to view it in a lightbox. It can also display titles, descriptions, copyright information, and shooting details embedded in your photos.
Build a photography gallery by uploading your images to a server. A PHP-capable host is required. The setup guide walks through the Blocs screens and provides code to copy and paste.
Download Gallery Pro 1.1.7 (Pac) / Setup guide / Gallery Pro Admin guide
The Pac contains Gallery Pro and Gallery Pro Admin. Install both together in Blocs 6.2.1 or later. Installation steps / Update an existing site
Examples
The Gallery Pro demo lets you compare the same photos in four layouts: Masonry, Justified, Grid, and Square. Open a photo to see it enlarged, together with its title, description, and shooting details.
| Layout | How photos are displayed | Main settings |
|---|---|---|
| Masonry | Preserves aspect ratios and arranges photos in fixed-width columns | Columns, Gutter |
| Justified | Adjusts row heights to fit the photos' aspect ratios and align them horizontally | Row Height, Gutter |
| Grid | Crops photos to the selected aspect ratio and arranges them in a grid | Crop Ratio, Columns, Gutter |
| Square | Crops photos to squares and arranges them in a grid | Columns, Gutter |
Show photographs and the information behind them
Choose a gallery layout and open individual photos in a lightbox. Titles, descriptions, copyright information, and shooting details come from metadata embedded in the photos. Share individual photo URLs and, after completing the setup, generate photo-specific information for social sharing.
Gallery Pro Admin is a separate Bric for managing photos in your browser. Use it to add or replace photos and set published dates. You can start with a single library and move groups of photos into albums later. Use Gallery Pro 1.1.0 or later for the public gallery to read the dates and visibility settings saved in Admin.
To display multilingual information, prepare the translations in the photo metadata.
Requirements
Use Blocs 6 for Mac and hosting with PHP 8.3 through 8.5. Individual photo URLs also use Apache rewrite rules. You do not need to install PHP on your Mac to use it on the server. See Requirements in the setup guide for PHP extensions and write access.
Setup
- Create
_gallery/under your document root and give PHP write access. - Place Gallery Pro where the photos should appear and choose a layout. Leave Path empty to show photos directly in
_gallery/. - Set the page to PHP and paste the supplied code into
Before <!DOCTYPE>in Page Settings. - Add the photo URL rules in Hypertext Access and publish from Blocs.
- Add photos from Library in Admin or through your hosting provider's File Manager. Check the gallery, lightbox, and individual photo URLs.
Follow the illustrated setup guide to create the public gallery. Set up a separate page to manage its photos. Gallery Pro Admin guide
Basic settings
Start with Path for your photo folder and Layout for the arrangement. See Settings and photo information for defaults, columns, spacing, multilingual Segment selection, and other options.
Photo information and the lightbox
Move between photos, zoom, and choose which details to display. Settings and photo information explains metadata, captions, and lightbox controls.
You can place multiple galleries on one page. When opening a photo URL, the first Gallery Pro containing a matching photo ID is used. See Multiple galleries.
Detailed guides
| What you want to do | Read |
|---|---|
| Prepare photos and publish the gallery | Setup guide |
| Add photos and organize them into albums in your browser | Gallery Pro Admin guide |
| Find your hosting provider's screens and PHP settings | Hosting guides |
| Look up defaults and photo information | Settings and photo information |
Verification scope
On October 25, 2026, the public demo was checked for gallery display, enlarged photos, and reloading individual photo URLs. The generic setup examples were tested in an isolated Apache 2.4.67 and PHP 8.5.8 environment for internal rewriting, photo-specific Open Graph output, query parameter preservation, and serving existing files.
Find a section from the previous article
Detailed instructions now have their own pages. Follow a link below to the corresponding section.
| Section | Read |
|---|---|
| 1. Plan your photo and file locations | Read section |
| Check the photo folder and write permissions | Read section |
| Official hosting guides | Read section |
| Check storage after publishing | Read section |
| 2. Place Gallery Pro in Blocs | Read section |
| Using multiple Gallery Pro instances on one page | Read section |
| 3. Set the page to PHP and add code before the doctype | Read section |
| 4. Add photo URL rules to .htaccess | Read section |
| 5. Publish from Blocs and check the result | Read section |
| Check attachments | Read section |
| Check from the sidebar | Read section |
| Brics placed in a Global Area | Read section |
| Troubleshooting | Read section |