[英]How do I link one amp-story-page to another?
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. 因此,我目前正在使用AMP(amp-story)制作故事,我想知道如何放置一个可以从一页切换到另一页的按钮。 Eg a button that makes you go from page 5 to page 8 instead of page 6. 例如,使您从第5页跳至第8页而不是第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)? amp-story是否也允许隐藏页面(除非您按下按钮才能访问的页面)?
Most of the events I tried showed me the " _ is not whitelisted
" error on the console. 我尝试过的大多数事件在控制台上都显示“ _ is not whitelisted
”错误。
Thanks. 谢谢。
Currently, this is not possible. 目前,这是不可能的。
Within AMP stories, this feature is called "branching" and is tracked in this GitHub issue . 在AMP故事中,此功能称为“分支”,并在本GitHub问题中进行了跟踪。 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". 您要询问的特定功能是该问题中提到的第一行项目:“ ... AMP操作...,可用于跳至另一页”。
EDIT (April 2019): 编辑(2019年4月):
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 ). 通过在同一个故事的不同页面之间拆分内容状态,可以实现用户交互(请参阅进行中的文档 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.