Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
Creating the Shell of an Asset Extension
Creating the Shell of an Asset Extension
nopaneltrue

  1. Create the shell of an asset extension for the Store. For more information, see Creating the Shell of an Asset Extension.
  2. 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 is Bookmark.
    • 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 is Bookmarked.
    • 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 is Bookmark.
    • 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 is Bookmarked.
  3. Move the copied partial files into the <ES_HOME>/repository/deployment/server/jaggeryapps/store/extensions/assets/<ASSET_TYPE_NAME>gadget/themes/store/partials directory.

  4. 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>
  5. 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>  
  6. Update the  top-assets-process-text.hbs file as follows and save the file.

    Code Block
    {{t "Subscribe"}}
  7. Update the  top-assets-processed-text.hbs file as follows and save the file.

    Code Block
    {{t "Subscribed"}}
  8. 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:

  1. Create the shell of an app extension in the Store. For more information, see Creating the Shell of an App Extension.
  2. Add the following dependency in the app.js, to override the default implementation, and save the file.

    Code Block
    app.dependencies = ['store_common'];
  3. Make a copy of the following two default partials into the <ES_HOME>/repository/deployment/server/jaggeryapps/store/themes/store/partials directory. 

  4. 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 is Bookmark.
  5. 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 is Bookmarked.
  6. 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 is Bookmark.
  7. 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 is Bookmarked.
  8. Move the copied partial files into the <ES_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/<APP_EXTENSION_NAME>/themes/store/partials directory.

  9. 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> 
  10. Update the  top-assets-process-text.hbs  file as follows and save the file.

    Code Block
    {{t "Subscribe"}}
  11. Update the top-assets-processed-text.hbs file as follows and save the file.

    Code Block
    {{t "Subscribed"}}
  12. Restart the ES server.
  13. Verify whether you were able to change the subscription process successfully in the Store

...


  1. Follow the instructions below to verify whether you were able to change the subscription process successfully:

    1. Sign into the Store. The top-asset page appears.
    2. Move your mouse-pointer over the asset more options button. 
      Image Modified
      You can see that the subscription process button has changed from Bookmark to Subscribe.
      Image Modified
    3. Click More Details. The asset details page appears.
      Image Modified
    4. Click on the Subscribe button. The caption of the Subscribe button changes to Subscribed.
      Image Modified
    5. Click the back button on your browser. The top-asset page appears.
    6. Move your mouse-pointer over the subscribed asset's more options button. Image Modified
      You will see that the caption of the subscription button has changed from Subscribe to Subscribed.
      Image Modified
  1. If you need to verify whether the subscription process has successfully taken place globally, repeat steps 2 to 6.