首页 > 解决方案 > 如何将一个 amp-story-page 链接到另一个?

问题描述

所以,我目前正在使用AMP(amp-story)制作故事,我想知道如何放置一个从一个页面切换到另一个页面的按钮。例如,让您从第 5 页转到第 8 页而不是第 6 页的按钮。

目的是允许用户跳过一些内容。amp-story 是否也允许隐藏页面(除非您按下按钮否则无法访问的页面)?

我尝试的大多数事件都向我显示_ is not whitelisted了控制台上的“”错误。

谢谢。

标签: amp-htmlamp-stories

解决方案


Currently, this is not possible.

Within AMP stories, this feature is called "branching" and is tracked in this GitHub issue. The specific functionality that you are asking about is the first line item mentioned in that issue: "...an AMP action... that can be used to jump to another page".


EDIT (April 2019):

Stories now have branching available experimentally, while still under development. This allows user interactivity by splitting content state across different pages of the same story (see the work in progress documentation).


推荐阅读