Theme Sprite Map
Register a custom SVG sprite map for icons.
# description
Replaces Liferay's default SVG sprite map, so `<svg><use xlink:href="..."/></svg>` calls resolve to your custom icon set.
UI extensions that render on Liferay pages or modify page appearance.
# when to use
- →You're shipping a custom icon library across the DXP.
- →You want brand-consistent icons in place of Liferay defaults.
# how to use
- 01Build a single
spritemap.svgwith your<symbol id="...">entries. - 02Reference it via
url:.
# required fields
| field | type | description |
|---|---|---|
urlrequired | string | Path to spritemap.svg. |
namerequired | string | Display name (required for this type). |
# optional fields
| field | type | description |
|---|---|---|
enableSVG4Everybody | boolean | Enable the svg4everybody polyfill for older browsers. |
# example
client-extension.yaml
my-spritemap:
type: themeSpritemap
name: Brand Icons
url: spritemap.svg