Add Google Drive's one-click-new icons to your blog or website

This Quick-Tip is about Google Docs / Drive's new short-cut buttons for making a new document, spreadsheet or presentation - and how you can install them into your blog.

Google have announced that one-click icons to create a Document, Spreadsheet or Presentation (now called Docs, Sheets, and Slides respectivly) are available as apps in the Chrome Web Store (a place where you can get various useful tools to install to your Chrome desktop or toolbar.

This is great for people who use Chrome - but some people don't,  for whatever reason.

Another option is to simply put links to the new commands into a place that you visit often - like your blog.  I've done this with a gadget called "Make a file in Google Drive" which you can see in my sidebar now.

To add this to your blog, simply add a HTML/Javascript gadget in the usual way, and put this code into the contents field.
<div style="text-align: center;">
<div style="display: inline-block; margin-right: 1em;">
<a target="_blank" href="https://docs.google.com/document/create"><img border="0" src="http://3.bp.blogspot.com/-7Pus8l8YAOU/UIl-AigEasI/AAAAAAAAPZU/TzRKVEIq1lI/s80/made-new-word-processing-document-google-drive.png" /><br />
Document</a></div>
<div style="display: inline-block; margin-right: 1em;">
<a target="_blank" href="https://docs.google.com/spreadsheet"><img border="0" src="http://3.bp.blogspot.com/-JVTNkcvbo7A/UIl-AsVf8MI/AAAAAAAAPZc/ybiT7UHcA_A/s80/made-new-spreadsheet-google-drive.png" /><br />
Spreadsheet</a></div>
<div style="display: inline-block; margin-right: 0;">
<a target="_blank" href="https://docs.google.com/presentation/create"><img border="0" src="http://3.bp.blogspot.com/-anR4Ii3VViw/UIl9_50rR9I/AAAAAAAAPZQ/1JrF7aKJqG4/s80/made-new-slideshow-google-drive.png" /><br />
Presentation</a></div>
</div>
<!-- Google drive new file icons gadget, via www.Blogger-hints-and-tips.blogspot.com.   Share and enjoy!  -->

Features

  • There is no gadget title in the code, so that you can put whatever title you want into the title field of the gadget. 
  • People can click either the picture of the text to create a new document - and when they do, the new document will be opened in a new tab or window.  Your blog (etc) will stay open in its current tab or window.
  • There is one "em" of space between the icons - this is enough to look good on most blogs.   However if your sidebar (or wherever you put the gadget) is particularly wide you might like to increase it - do this by finding "1em" in the code above, and replacing it with a larger value.

Code for just one type of document

You don't have to put the code into a gadget - it can go equally well into  a post - for example if you want to tell people to make a document of their own, and do it "right now".

In this case,you might like to show just one type of document icon, rather than all three.   The blockks of code for that are shown below - note that I would usually recommend pasting them into the HTML view of the post editor, to be 100% certain that they work correctly.

To make a new word-processing document:

<div style="text-align: center;"><div style="display: inline-block; margin-right: 1em;"><a target="_blank" href="https://docs.google.com/document/create"><img border="0" src="http://3.bp.blogspot.com/-7Pus8l8YAOU/UIl-AigEasI/AAAAAAAAPZU/TzRKVEIq1lI/s80/made-new-word-processing-document-google-drive.png" /><br />Document</a></div></div><!-- Google drive new file icons gadget, via www.Blogger-hints-and-tips.blogspot.com.   Share and enjoy!  -->

To make a new spreadsheet file:

<div style="text-align: center;"><div style="display: inline-block; margin-right: 1em;"><a target="_blank" href="https://docs.google.com/spreadsheet"><img border="0" src="http://3.bp.blogspot.com/-JVTNkcvbo7A/UIl-AsVf8MI/AAAAAAAAPZc/ybiT7UHcA_A/s80/made-new-spreadsheet-google-drive.png" /><br />Spreadsheet</a></div></div><!-- Google drive new file icons gadget, via www.Blogger-hints-and-tips.blogspot.com.   Share and enjoy!  -->

To make a new Google Docs / Drive presentation:

<div style="text-align: center;">
<div style="display: inline-block; margin-right: 0;"><a target="_blank" href="https://docs.google.com/presentation/create"><img border="0" src="http://3.bp.blogspot.com/-anR4Ii3VViw/UIl9_50rR9I/AAAAAAAAPZQ/1JrF7aKJqG4/s80/made-new-slideshow-google-drive.png" /><br />Presentation</a></div></div><!-- Google drive new file icons gadget, via www.Blogger-hints-and-tips.blogspot.com.   Share and enjoy!  -->

0 comments:

Post a Comment

Home - About - Order - Testimonial
Copyright © 2010 Tips Blogging All Rights Reserved.