Google App Scripts For New Google Sites Release

2020-02-06 09:54发布

问题:

Google revamped their sites platform in November 2016, however there is no longer an option for writing Google Apps Scripts for it, as far as I'm aware. Has Google announced when they will incorporate this into their new sites platform? Any ideas?

回答1:

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



回答2:

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