How do I link one amp-story-page to another?

為{幸葍}努か 提交于 2020-08-25 07:03:48

问题


So, I'm currently using AMP (amp-story) to make stories, and I'd like to know how can I put a button that switches from one page to another. E.g. a button that makes you go from page 5 to page 8 instead of page 6.

The intention is allow the user to skip some of the content. Does the amp-story allow for hidden pages as well (pages that are not accessible unless you press a button)?

Most of the events I tried showed me the "_ is not whitelisted" error on the console.

Thanks.


回答1:


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).



来源:https://stackoverflow.com/questions/51852010/how-do-i-link-one-amp-story-page-to-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!