You Do: Create a New Output Type
Goal: Add a new output type to your repo, then modify a feature to use the new output type.
TL;DR: When creating a new output type and adding it to various features, you will need to go through each feature’s config.json file and add the new output type under configRenderings, along with any associated key/values. Then, in order to see these changes reflected, you’ll need to go to the Configurations under the Developer Tools and reload the feature you’ve modified.
- Create a
demo.jsonfile within the/output-typesdirectory. - Add the following JSON:
- Next, select a feature to add to the output type. In the feature directory, create a new file,
demo.jsp - In this file, add some HTML markup. (This can be anything! This is just a demo after all.)
- In that feature's
config.jsonfile, identify therenderingConfigsobject. You'll notice that it already has one child object,default, which refers to the default output type. Below this object, add the following JSON:
"demo": {
"resources": {},
"displayProperty": {
"columns": {},
"fullWidth": true,
"async": false
},
"template": "demo.jsp"
}
- In the PB admin on the Configurations screen, reload the configs for all output types, and for the feature whose
config.jsonfile was changed.