Customizing the Subscription Process
Follow the instructions below to change the default subscription button from "Bookmark" to "Subscribe" and "Bookmarked" to "Subscribed" for the asset type named gadget:
For more information on asset extensions, see Introduction to Asset Extensions.
- 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/gadget/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="sub-bookmark"></span> </span>
Update the
processed-asset-text.hbs
file as follows and save the file.<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
{{t "Subscribe"}}
Update the
top-assets-processed-text.hbs
file as follows and save the file.{{t "Subscribed"}}
Verify whether you were able to change the subscription process successfully in the Store.
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.