This is my first question on stackoverlfow but I've appreciated and found many answers here for years... Thanks to all those who have provided answers! I'll pay it forward when I find a question that I can answer. I apologize if my question is to general or vague.
Basically, I am looking for some way to use Google Docs as the document storage and management solution, for public web sites that don't use a CMS and that don't require a Google account to access. This could be used for press releases, product manuals, support documents, etc...; any document or list of documents that a business might want to provide on their web site. The main idea is to give the web site owner a single place to create and manage the documents and without requiring FTP to add them to the site.
This it how I was envisioning that this could work:
The web site owner has a Google Drive/Gmail account and creates a collection for their web site documents. Usually these will be PDFs but some could be Word Docs or Excel files.
The owner puts the PDF files they want to display on their web site, into the specific collection. All the files are shared and public and shouldn't require a Google account to access because some visitors may not have Google accounts.
I program and configure a web page, preferably with PHP or Javascript, to query and retrieve the collection, list all the files in the collection and to display them on the web site with links to open the files. Sub folders/collections would be useful as well. Something like a file tree.
When the owner changes a file in the Google Docs collection it is automatically updated in the collection file list displayed on the web site.
I've looked thru the Google Docs API, the Drive SDK and with searches for integrating with Google Docs but I haven't been able to find a simple answer or sample code. The Google API/SDK seems to require registering an application and/or having the user authenticate with a Google account which they may not have. It also seems overly complex for what I'm trying to achieve. Maybe I am misreading these requirements... I'm not clear if it's possible to do what I want, or if it is, it may be to complex or costly to develop for a simple web site.
I developed something similar to the above using iframe embedded Gdocs but the one thing you apparently can't embed is a list of GDoc files or collections. To get by this limitation I created a TOC (table of contents) doc that lists and contains links to the files shared in Google docs. I then embed this doc in a web page iframe and the links to other Gdocs open in the same frame. It also includes simple navigation options to go back to the TOC. This works but it is a pain for the web site owner because they have to get the embed code for a shared/public doc, remove the iframe tag/html, adjust character encoding and then past the link for a shared doc into the embedded TOC doc.
Being able to share and embed a collection would be much easier. I think this is easily possible with a Google Site but maybe not for a external site. I also believe that individually embedded PDF files will break when the file is updated in GDocs because the embed link changes for PDFs.
I've also setup customized embedded calendars that use Google Calendar as the back end which appears to work very well.
Is there a simple way to use Google Docs for this purpose? Does anyone know of an example for reference? Any ideas on how to easily list and link to the files in a collection? Is there a another service that provides this functionality that I should consider?
Any help and advice is appreciated!
Cheers!
D