What this solution does
The PhotoTeka module for 1C-Bitrix: Site Management extends the standard Media Library, transforming an image repository into a full-featured gallery. Photos are uploaded to the standard Media Library, while the module handles their display on the site: a list of albums with covers, an album page with a thumbnail grid, and a convenient full-screen viewer with paging, gestures, and zooming powered by PhotoSwipe 5.
This solution is designed for website owners and content managers of companies, educational institutions, agencies, hotels, and clubs who need to showcase photos of events, facilities, portfolios, and reports. Web studios and integrators receive a ready-made gallery component that requires no Info Blocks or custom development, utilizing a custom template.
The module addresses the lack of an out-of-the-box gallery, as the standard Media Library stores photos but cannot display them to visitors. Albums and photos are managed as Media Library collections and elements, allowing editors to work with them using familiar tools without creating additional Info Blocks. Heavy original files are not loaded into the grid; thumbnails and viewing versions are generated by the standard Bitrix resizing mechanism and cached. Mobile viewing is optimized with support for swipes, pinch-zoom gestures, and keyboard navigation. All scripts are hosted within the module, eliminating dependency on external CDN servers.
The module's functionality is implemented through three components.
The Phototeka module manages Media Library albums on the site. It consists of three components: Phototeka: albums list (krupnoedelo:phototeka.albums) displays top-level albums or those nested within a selected one, showing the cover, photo count, nested album count, and description; Phototeka: album (krupnoedelo:phototeka.album) forms a thumbnail grid, provides viewing via PhotoSwipe, displays captions (photo name and description), page title, navigation chain, and returns a 404 error for non-existent albums; Phototeka (complex) (krupnoedelo:phototeka) combines the album list and album pages in a single section with support for clean URLs (such as /photo/12/) or without them.
The system supports nested albums, allowing collections within collections. Features include sorting of albums and photos, configurable thumbnail sizes, and a maximum photo size limit for viewing. The Media Library permission mode is active, ensuring visitors see only the albums they are authorized to access.
Technical implementation includes component caching, an adaptive grid, and lazy loading of images. The module supports the Composite Site technology: templates are compatible, and gallery pages are served from the composite cache. When Media Library permissions are applied, the personalized part is loaded via a dynamic zone with a "Loading..." placeholder, while photo viewing is connected automatically. Component templates can be copied to the site template and modified.
The Photo Gallery module displays image collections from the Media Library, which is part of the Structure Management module (fileman). Video and audio files are not displayed in this mode.
By default, albums are visible to all site visitors, although anonymous users typically lack viewing rights within the Media Library itself. To enforce access rights correctly, enable the "Consider Media Library Access Rights" parameter.
Changes made to albums in the Media Library appear on the site after the component cache expiration time (default is one hour) or after manually clearing the cache.
The module does not create new database tables or execute its own SQL queries. It is compatible with MySQL and PostgreSQL databases.
If “Photo Gallery — Media Library albums on the site” fits the task, General iT can install the module, configure it and verify the result in the project.