简体   繁体   English

如何将一个amp-story-page链接到另一个?

[英]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.

相关问题 amp-story-page 最后一个孩子 - amp-story-page last child 如何设置活跃的 AMP 故事页面? - How to set active an AMP Story Page? 如何将非 AMP 页面连接到 AMP 页面? - How do I connect a non-AMP page to an AMP page? 带有表单的AMP故事页面 - AMP story page with form inside 怎么做 <div> 标签在以下情况下与amp-story交互? - How do <div> tags interact with amp-story in the following scenarios? 事件和事件对象如何在 amp-story 中工作? 是否有完整的 AMP 事件和操作列表? 有 amp-story 的完整列表吗? - How do events and event objects work in amp-story? Is there a full list of AMP events and actions? Is there a full list for amp-story? 即使我不使用amp-carousel,我也可以在amp-story中将amp-video-container与amp-video一起使用吗? amp-video-container做什么? - Can I use amp-video-container with amp-video in amp-story even if I am not using amp-carousel? What does amp-video-container do? 如何直接使用javascript在AMP页面中打开侧边栏? 有功能吗? - How do I open the sidebar in a AMP page with javascript directly? Is there a function? 我们如何跟踪对 amp 故事页面内的链接标签的点击 - How can we track click on link tags inside amp story pages AMP 页面。 链接到网站其他页面的最佳实践 - AMP Page. Best Practice to link to another pages of the site
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM