在嵌入式iframe中导航Google文件夹 [英] Navigating Google Folders in the embeded iframe

查看:92
本文介绍了在嵌入式iframe中导航Google文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我嵌入了以下iframe,该iframe当前是公开的:

I have an iframe embed as follows, which is currently public:

<iframe src="https://drive.google.com/embeddedfolderview?id=0B3gN5-3YYPjHeGlTVjduRnBTVGs#list" width="100%" height="500" frameborder="0"></iframe>

,它将显示在我的网站中,但不会导航该iframe中的文件夹,而是导航至新窗口.有没有办法让所有导航保持在iframe中?

and it will show up in my website, but it will not navigate folders within that iframe, but instead navigate to a new window. Is there a way to make all navigate stay self contained in the iframe?

您可以在以下位置查看此示例: http://help.realsmart.co.uk/embedding-a-google-drive-folder-in-a-post-or-page/

You can see samples of this at: http://help.realsmart.co.uk/embedding-a-google-drive-folder-in-a-post-or-page/

显示了如何嵌入文件夹.看起来不错,但是当导航到更深的文件夹时,它只是会离开.

which shows how to embed a folder. It looks nice, but when navigating into deeper folders, it just navigates away.

编辑:添加了小提琴: https://jsfiddle.net/0y4cm891/

推荐答案

于2020年4月5日 我专门为此目的制作了一个新工具.有关详细信息和步骤,请阅读我对类似问题的回答: https://stackoverflow.com/a/61034751/8111094

Edit on 5 April 2020: I made a new tool specifically for this purpose. For details and steps, read my answer to this similar question: https://stackoverflow.com/a/61034751/8111094

旧答案: 有两种方法可以做到这一点.

Old answer: There are two ways to do this.

  1. 如果您使用的是wordpress,则只需使用插件Use Your Drive(使用付费插件)即可.也很少有其他类似的插件.据我所知,没有一个是免费的.

  1. If you are using wordpress, you cam simply use the plugin Use Your Drive (its a paid plugin). There are few other similar plugins as well. As far as I have seen, none are free.

使用Google Drive API,这将要求您编写自己的应用程序和一个Google云帐户.观看由Google https://www.youtube.com/watch发布的类似用例的视频?v = Z5G0luBohCg

Use the Google Drive API, it will require you to write your own app and a google cloud account. Watch this video of a similar use case published by google https://www.youtube.com/watch?v=Z5G0luBohCg

这篇关于在嵌入式iframe中导航Google文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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