Google App Scripts For New Google Sites Release

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 12:44:18

I also look for this, but for now no prediction. We're just sure that Google Apps Script does not yet work with New Google Sites, as we see here on the official site: https://developers.google.com/apps-script/reference/sites/

Apps Script cannot currently access or modify New Google Sites

In case ppl are still looking, it's now possible to embed apps on new google sites

Embedding a web app in new Sites

In order to embed a web app, it must first be deployed in the Google apps script editor. You also need the Current web app URL from the 'Deploy as web app dialog' (make sure to get the one ending 'exec' one and not the one ending 'dev').

Or you can host an html page on, e.g. github; you'll then need that URL (whatever host you use, it must be https and host must allow iframing).

To embed a web app or url into a new Sites page, follow these steps:

Open the Sites page where you'd like to add the web app.

  1. Select Insert > Embed URL.
  2. Paste in the web app (or, e.g. github ) URL and then click ADD.

The web app appears in a frame in the page's preview.

When you publish the page, your site viewers may need to authorize the web app before it executes normally. Unauthorized web apps present authorization prompts to the user (you make these settings when you 'deploy as web app' if using a Google apps script).

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