Google Sites‎ > ‎Sample Scripts‎ > ‎

Merge Announcements

This script needs one parameter to run - the URL of an announcement page that will become the 'merged' announcements page for that site.
When this script runs, it looks at every Announcement page in the specified site
If there has been an announcement since the last time the script was run, it adds the announcement(s) to the merged announcements page

The spreadsheet with the script can be copied by using the Spreadsheet template 'Google Sites Merge Announcements'
In Docs/Drive, click on 'Create' and select 'From Template'. Enter 'Merge Announcements' in the search box and click 'Search Templates'.
Select 'Use this template'.
Change the URL in cell B2 to be the URL of an announcement page on your site. Add any pages to be excluded in cell B3
Then run mergeAnnouncements manually (from the spreasheet menu) or by a timed trigger.

Google Sites Merge Announcements