如何将一个amp-story-page链接到另一个? [英] How do I link one amp-story-page to another?

查看:85
本文介绍了如何将一个amp-story-page链接到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我目前正在使用AMP(amp-story)制作故事,我想知道如何放置一个可从一页切换到另一页的按钮.例如.一个使您从第5页跳至第8页而不是第6页的按钮.

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.

目的是允许用户跳过某些内容. amp-story是否也允许隐藏页面(除非您按下按钮才能访问的页面)?

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

我尝试过的大多数事件都在控制台上显示"_ is not whitelisted"错误.

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

谢谢.

推荐答案

当前,这是不可能的.

在AMP故事中,此功能称为分支",并在此GitHub问题中进行了跟踪.您要询问的特定功能是该问题中提到的第一行项目:"...一个AMP操作...,可用于跳至另一页".

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

编辑(2019年4月):

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

这篇关于如何将一个amp-story-page链接到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆