Request: Google Docs CMS!
I think it would be cool if WebAssist comes up with an extension to let us implement the following Google Docs tricks quickly without coding:
----------------------------------------------------------
Using Google Docs as a quick and easy CMS
How:
Create a Google Document
Click ‘Share’
Click ‘Publish as a website…’
Copy and paste the document reference into the script e.g. View?id=(Google Docs code)
<?php
// Specify document
$gd_doc = "(Google Docs reference code here)";
$gd_doc_type = "doc";
$gd_array = array();
$gd_array["doc"]["url"] = "http://docs.google.com/View?id=".$gd_doc;
$gd_array["doc"]["start"] = '<div id="doc-contents">';
$gd_array["doc"]["end"] = '<div id="google-view-footer">';
$working_doc = file_get_contents($gd_array[$gd_doc_type]["url"]);
$gd_start = strpos($working_doc,$gd_array[$gd_doc_type]["start"]);
$gd_end = strpos($working_doc,$gd_array[$gd_doc_type]["end"]);
$gd_content = substr($working_doc, $gd_start, ($gd_end-$gd_start) )
?>
<?=$gd_content?>