com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

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.

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

  4. 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>
  5. 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>  
  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. 
    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. 

      You can see that the subscription process button has changed from Bookmark to Subscribe.
    3. Click More Details. The asset details page appears.
    4. Click on the Subscribe button. The caption of the Subscribe button changes to Subscribed.
    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. 
      You will see that the caption of the subscription button has changed from Subscribe to Subscribed.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.