Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The following section describes the ways in which you can customize the subscription process:

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 asset type:

For more information on asset extensions, see Introduction to Asset Extensions.

  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>/themes/store/partials directory.

  4. Update the process-asset-text.hbs file as follows and save the file.

    <i class="fw fw-bookmark"></i>
    <span class="main-bookmark" data-processing=" Adding..." data-success="Successfully bookmarked the asset" data-error="Failed to bookmark this asset!">
    {{t "Subscribe"}}
    <span class="sub-bookmark"></span>
    </span>
  5. Update the processed-asset-text.hbs file as follows and save the file.

    <i class="fa fa-star"></i>
    <span class="main-bookmark" data-processing=" Removing..." data-success="Successfully removed the bookmark from asset" data-error="Failed to un-bookmark this asset!">
    {{t "Subscribed"}}
    <span class="sub-bookmark"></span>
    </span>
  6. Update the  top-assets-process-text.hbs file as follows and save the file.

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

    {{t "Subscribed"}}
  8. Verify whether you were able to change the subscription process successfully in the Store

Customizing the subscription process globally

For more information on app extensions, see Introduction to App Extensions.

 

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.

    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. 

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

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

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

    {{t "Subscribed"}}
  9. Restart the ES server.
  10. Verify whether you were able to change the subscription process successfully in the Store
  • No labels