Templates are managed at Admin > OG Images (/admin/og-images). The list shows every template with its name, resource type, whether it is the default for that type, the sites assigned to it, its dimensions and the date it was last modified.
Use the row of buttons above the table (All, Item, Item Set, Media, Site, Page, Search and, with the Blog module, Blog Post) to filter the list by resource type.
Default templates
Installation creates one template per resource type, each marked as the default: Default Item, Default Item Set, Default Media, Default Site, Default Page, Default Search and Default Blog Post. They share a dark split-panel design with a thumbnail on the right, a site label, a large title and a two-line description.
You can edit these in place or create new templates and make them the default instead.
Creating a template
- Click Add Template.
- Enter a Template name and choose the Resource type. Pick Default (all types) to make a template that is used for any type that has no default of its own.
- Tick Set as default for this resource type if this template should replace the current default. Only one template per type can be the default; setting a new one clears the flag on the others.
- Set the canvas Width (px) (400 to 2400, default 1200), Height (px) (200 to 1200, default 630), Background color and optional Background image URL.
- Apply a style preset or add layers. See Designing Templates.
- Click Save. You are taken to the edit page of the new template.
Editing a template
Click Edit on a row, or open /admin/og-images/template/edit/{id}. The edit page adds a Site Assignments section (see Site Settings) and shows the template ID under the preview. Saving a template clears the cached images for its resource type.
Making a template the default
Click Set default in the Default column of the list, or tick Set as default for this resource type on the edit page. The cache for that resource type is cleared.
Duplicating a template
Click Duplicate on a row or on the edit page. A copy named "name (copy)" is created with the same layers, resource type and canvas settings. The copy is never marked as default and has no site assignments. You are taken to the copy's edit page.
Deleting a template
Click Delete on a row and confirm the browser prompt, or click Delete on the edit page and confirm in the sidebar. Deleting a template also removes any site overrides that point to it and clears the cache for its resource type.
If you delete the default template for a type, images for that type fall back to the Default (all types) template if one is marked default, and otherwise to the built-in design compiled into the module. The built-in design is a dark split-panel card similar to the installed defaults.
Flushing the cache from the list
The line under the page title shows how many images are cached and their total size, with a Flush all link. Each row also has a Flush cache button that clears the cache for that row's resource type only. See Cache Management.