Starting with version 3.0.17, Gallery3x supports grouping images with groups (tags). One image can have several groups at once, which lets you organise and filter images flexibly.
Key features
- Several groups for one image
- Global groups available in all galleries of the component
- Quick filtering by group in the manager
- Bulk assignment of groups to selected images
- A convenient interface with visual “pills”
Creating groups
Groups are created on the fly when editing images. To create a new group:
- Open the context menu on an image (right click).
- Choose “Edit properties”.
- Start typing the group name in the “Group” field (for example, “Landscape”).
- ⚠️ Be sure to press
Enter— the group turns into a “pill” with a cross. - Repeat to add more groups.
- Click “Save”.
Without pressing
Enterthe group is not created! AfterEnterthe text turns into a coloured “pill” — this means the group has been added.
Assigning groups to one image
Option 1: via image properties
- Right click on the image → “Edit properties”.
- Type the name in the “Group” field and press
Enter. - Add more groups (pressing
Entereach time). - Click “Save”.
Option 2: choosing existing groups
- Right click on the image → “Edit properties”.
- Click in the “Group” field — a drop-down list opens.
- Choose existing groups from the list (created earlier).
- Or type a new group and press
Enter. - Click “Save”.
Bulk assignment
You can assign groups to several images at once:
- Select several images (holding
CtrlorShift). - Right click → “Set group…”.
- In the window, choose or create groups (remember to press
Enter). - Click “Save”.
- The groups are added to the groups these images already have.
Filtering by group
The gallery toolbar has a group filter:
- Open the “Filter by group:” drop-down.
- Choose the group.
- The gallery shows only images with this group.
- To reset the filter, click “Reset”.
Removing groups
Removing a group from an image:
- Right click on the image → “Edit properties”.
- Click the cross (×) on the group's “pill”.
- Click “Save”.
Removing a group completely: groups disappear automatically when no image uses them any more.
Where groups are shown
- In the manager: all groups of an image are shown under it, comma-separated.
- In the database: groups are stored in the
groupfield of thegallery3x_filestable, separated by||(the MODX standard).
Usage examples
Example 1: organising by topic. Create the groups Nature, Architecture, People, Animals, assign them to the images and use the filter to find the right category quickly.
Example 2: multiple classification. Images can have several groups: Winter, Landscape, Sunset — so you can find them by different criteria.
Example 3: bulk work. Select 20 images from one event, assign them the group Conference 2025, and add an extra group Corporate party to some of them.
FAQ
Q: I type a group name but it is not saved. Why?
A: You forgot to press Enter after typing the name. The group must turn into a “pill” with a cross.
Q: Are groups created in one gallery visible in another?
A: Yes. Groups are global and available in all galleries of the component.
Q: Can a group be renamed?
A: No, but you can remove the old group from all images and create a new one with the right name.
Q: How many groups can one image have?
A: Any number.
Groups on the site
All snippets have the &group parameter: [[!Gallery3x? &group=`Interior`]], several groups — comma-separated. Videos, files and embeds have groups too; the group list is shared (with gallery3x.groups_per_user — each manager has their own).
Technical details
- Storage format: groups are stored in the
groupfield separated by||(for exampleNature||Landscape||Winter). - UI component: the standard MODX SuperBoxSelect.
- Processors:
File/GetGroups,File/BulkSetGroup,File/Update.