Navigate with stories

How to :: navigate with stories

LinkTo overview

A story can be linked to one or two stories or the home page using the linkTo option. You can even use external links! 🔥

Warning

This feature is powerful, but it can make the navigation within your application confusing. Therefore, we have limited the number of links to two.

Configuration

Warning

This option is only available in code mode.

You can use HTML syntax for the legend (this allows you to add pictograms, for example): <i class="fa fa-list" aria-hidden="true"></i> Go to list view

The link buttons and the story narrative are positioned in the same place. Do not use both in the story. Also, make sure to test it on mobile devices as well 📱.

Link to a story

If you want to link a story to another story, there are only three parameters you need to set up:

  • legend : the text that will be displayed on a button.

  • targetLayoutId : enter the ID of the story. You can find it in the URL of your story.

  • targetLayoutType : the type of layout you want to link to in this case STORY.

linkTo: [
  {
    InternalLink:
      legend: "Go to rank evolution"
      targetLayoutId: "dabe4b16-c292-4612-8647-59caf9eee995"
      targetLayoutType: "STORY"
  }
  {
    InternalLink:
      legend: "Go to highest rated"
      targetLayoutId: "2a44759d-15d1-4873-8ee7-58f3d8ec2fc0"
      targetLayoutType: "STORY"
  }
]

If you want to link a story to the home page, there are two parameters you can set up:

  • legend : the text that will be displayed on the button.

  • targetLayoutType : the type of layout you want to link to, in this case "HOME".

linkTo: [
  {
    InternalLink:
      legend: "Link to the home"
      targetLayoutType: "HOME"
  }
]

Last updated