Table of Contents

Favorites list service

Favorites lists on Swift depend on a service page which handles some of the internal logic related to this feature.

Manual setup

To set up this page manually:

  1. Go to Content > Swift Tools > Services.
  2. Right click the folder and add an empty page.
  3. Go to Page settings by clicking the circular button in the bottom right corner, and name the page Favorites list service.
  4. Go to the Publication tab and select Hidden in menu.
  5. Hit Save and close.

Next you need to add an App paragraph:

  1. Add an empty row.
  2. To this row, add an App paragraph.
  3. Name it Favorites list.
  4. Enter the App tab and select Product catalog for ViewModel in the dropdown menu.
  5. In the Query dropdown menu, choose SwiftProducts - Products.query.
  6. Scroll down to the Templates section. In the Details field, select the Favorites.cshtml file.
  7. Click on Save and close.

Finally you need to add a FavoriteServicePage navigation tag:

  1. Enter the Page settings on your Favorites service page by clicking the circular button in the bottom right corner.
  2. Head to the Advanced tab.
  3. In the Navigation section, under Navigation Tag, write FavoritesServicePage.
  4. Click on Save and close.
To top