The following section describes the ways in which you can customize the subscription process:
Table of Contents |
---|
Customizing the subscription process for a specific asset type
Follow the instructions below to change the default subscription button from "Bookmark" to "Subscribe" for a specific and "Bookmarked" to "Subscribed" for the asset type named gadget:
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
- Create the shell of an asset extension for the Store. For more information, see Creating the Shell of an Asset Extension.
Make a copy of the following default partials, which is in the
<ES_HOME>/repository/deployment/server/jaggeryapps/store/themes/store/partials
directory.process-asset-text.hbs
- This defines the caption of the subscription process button before a user subscribes to it on the details asset page. The default value for this isBookmark
.processed-asset-text.hbs
- This defines the caption of the subscription process button after a user has subscribed to it on the details asset page. The default value for this isBookmarked
.top-assets-process-text.hbs
- This defines the caption of the subscription process button before a user subscribes to it on the top-assets page, which shows the thumbnails of all the assets. The default value for this isBookmark
.top-assets-processed-text.hbs
- This defines the caption of the subscription process button after a user has subscribed to it on the top-assets page, which shows the thumbnails of all the assets. The default value for this isBookmarked
.
Move the copied partial files into the
<ES_HOME>/repository/deployment/server/jaggeryapps/store/extensions/assets/<ASSET_TYPE_NAME>gadget/themes/store/partials
directory.Update the
process-asset-text.hbs
file as follows and save the file.Code Block <span id="main-bookmark"> {{t "Subscribe"}} <span class="sub-bookmark"></span> </span>
Update the
processed-asset-text.hbs
file as follows and save the file.Code Block <span id="main-bookmark"> {{t "Subscribed"}} <span class="sub-bookmark"></span> </span>
Update the
file as follows and save the file.top-assets-process-text.hbs
Code Block {{t "Subscribe"}}
Update the
top-assets-processed-text.hbs
file as follows and save the file.Code Block {{t "Subscribed"}}
Verify whether you were able to change the subscription process successfully in the Store.
Customizing the subscription process globally
...
Follow the instructions below to change the default subscription button from "Bookmark" to "Subscribe" so that it will apply for all the asset types:
- Create the shell of an app extension in the Store. For more information, see Creating the Shell of an App Extension.
Add the following dependency in the
app.js
, to override the default implementation, and save the file.Code Block app.dependencies = ['store_common'];
Make a copy of the following two default partials into the
<ES_HOME>/repository/deployment/server/jaggeryapps/store/themes/store/partials
directory.process-asset-text.hbs
- This defines the caption of the subscription process button before a user subscribes to it on the details asset page. The default value for this isBookmark
.processed-asset-text.hbs
- This defines the caption of the subscription process button after a user has subscribed to it on the details asset page. The default value for this isBookmarked
.top-assets-processed-text.hbs
- This defines the caption of the subscription process button after a user has subscribed to it on the top-assets page, which shows the thumbnails of all the assets. The default value for this isBookmarked
.Move the copied partial files into the
<ES_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/<APP_EXTENSION_NAME>/themes/store/partials
directory.Update the
process-asset-text.hbs
file as follows and save the file. <span id="main-bookmark"> {{t "Subscribe"}} <span class="subCode Block
bookmark"></span> </span>-
Update the
processed-asset-text.hbs
file as follows and save the file.Code Block <span id="main-bookmark"> {{t "Subscribed"}} <span class="sub-bookmark"></span> </span>
Update the
top-assets-process-text.hbs
Code Block {{t "Subscribe"}}
Update the
top-assets-processed-text.hbs
file as follows and save the file.Code Block {{t "Subscribed"}}
- Restart the ES server.
Verify whether you were able to change the subscription process successfully in the Store.
top-assets-process-text.hbs
- This defines the caption of the subscription process button before a user subscribes to it on the top-assets
Bookmark
....
Follow the instructions below to verify whether you were able to change the subscription process successfully:
- Sign into the Store. The top-asset page appears.
- Move your mouse-pointer over the asset more options button.
You can see that the subscription process button has changed from Bookmark to Subscribe.
- Click More Details. The asset details page appears.
- Click on the Subscribe button. The caption of the Subscribe button changes to Subscribed.
- Click the back button on your browser. The top-asset page appears.
- Move your mouse-pointer over the subscribed asset's more options button.
You will see that the caption of the subscription button has changed from Subscribe to Subscribed.
If you need to verify whether the subscription process has successfully taken place globally, repeat steps 2 to 6.