WSO2ES shipped with default store items of types 'Gadgets','E-Books' and 'WebSites'.
When you are building your own store using wso2es, you may need to remove default items and related menus from both the store and publiser. Here's the guide to do this.
Removing from Store- Front Office
Restart the server and here you go!
Read More
When you are building your own store using wso2es, you may need to remove default items and related menus from both the store and publiser. Here's the guide to do this.
Removing from Store- Front Office
- Delete unwanted <asset-type> folders from
- Remove unwanted entries from
"assets": ["gadget", "site", "ebook"]
ex: if you need site only
"assets": ["site"]
- If you have started the server earlier, you will have to remove these entries from registry by editing '/_system/config/store/configs/store.json' using the management console.
- Now remove the
Removing from Publisher- Back Office
- Delete unwanted <asset-type>.json's from
- Edit following two code snippets of
"collections": ["gadgets", "sites", "ebooks"]
ex: if you need site only
"collections": ["sites"]
&
"defaultAssets": {
"root":"/config/defaults",
"assetData": [{
"type": "gadgets",
"ignore":["agricultural-land", "intro-gadget-1", "intro-gadget-2", "gadget-template-explorer", "gadget-explorer", "co2-emission", "electric-power", "energy-use", "greenhouse-gas"]},
{
"type": "ebooks"},
{
"type": "sites" }]}
ex: if you need site only
"defaultAssets": {
"root":"/config/defaults",
"assetData": [{"type": "sites"}]}
- If you have started the server earlier, you will have to do the changes to registry by editing
- Edit
response.sendRedirect('/publisher/assets/gadget/');
ex: if you need site
response.sendRedirect('/publisher/assets/site/');