...
Excerpt | ||
---|---|---|
|
Create an a new asset type. If
, skip this stepNote Skip this step if you are extending a default asset type in ES
.
Create an asset extension folder structure in the
asset
directory. For more information, see Asset Extension Components. Theassets
directory of the Publisher and Store asset extension are as follows:ES Component Directory Publisher <ES_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/assets/<ASSET_TYPE_NAME>
Store <ES_HOME>/repository/deployment/server/jaggeryapps/store/extensions/assets/<ASSET_TYPE_NAME>
Info The
<ASSET_TYPE_NAME>
should always correspond to an asset type that exists in ES, which has a corresponding RXT definition in the registry.An asset extension directory will contain the following elements:
- A
themes
directory with one or more themes (Optional). - An A
asset.js
file (Optional). - A
pages
directory (Optional). - An A
apis
directory (Optional).
Example:
The following screenshot explains the general folder structure of an asset extension, where the name of the asset type isservicex
.
- A
- Restart the ES server, so that ES evaluates the changes in the
asset.js
file. - Customize the newly created shell of the asset extension. For more information, see Working with Asset Extensions.