The sitemap.json
file defines the pages of the site or site template to
import—along with the layout templates, portlets, and portlet preferences of
these pages. You may also want to provide details about the assets you include
with the theme. An assets.json
file lets you provide this information.
-
Create the
assets.json
in your theme’s[theme-name]/src/WEB-INF/src/resources-importer
folder. -
Follow the pattern below to configure your
assets.json
file. Tags can be applied to any asset. Abstract summaries and small images can be applied to web content articles. For example, the followingassets.json
file specifies two tags for thecompany_logo.png
image, one tag for theCustom Title.xml
web content article, and an abstract summary and small image for theChild Web Content 1.json
article structure:{ "assets": [ { "name": "company_logo.png", "tags": [ "logo", "company" ] }, { "name": "Custom Title.xml", "tags": [ "web content" ] }, { "abstractSummary": "This is an abstract summary.", "name": "Child Web Content 1.json", "smallImage": "company_logo.png" } ] }
Now you know how to configure assets for your web content!