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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiiqJztDkpxImR1qVcSZjFNIiX3U6bxVdFgmBs44a9TiJxQKCacLrkbeXnApjmoZqak2R7npP8PMaDmShZhyK7gn321Ow3BqlaK5zlTozIYz3qQ1geC8ym7P7jYXWAyfA4Yjm9jFMTEbNb/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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcar_DZ2Z6Y8MiQnGbAB_l_vjh2fn5zvtHMRjcvTeWQz6H8IN6XeffWMaOIQxSkKutaa0qusTgaW1R0X58p4qGGhI9fkwBKDUqfXYzeOKWgUhop81a3TP24zU9VX9_GSk31ceJ2uB8yt5A/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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6aBkQbQRlS_hb_B6-LX2tkN2Oj5QOJKM5q-wwNIA_EZwPYYwavr81ejYMQUaTl57MO5HZ3BY4ek6zkil-RzUVN2NSWSYHK-sCC0L4tTnM3dLuarAtCnXrgExE26ApIVzYf3NyPzViX0j1/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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiiqJztDkpxImR1qVcSZjFNIiX3U6bxVdFgmBs44a9TiJxQKCacLrkbeXnApjmoZqak2R7npP8PMaDmShZhyK7gn321Ow3BqlaK5zlTozIYz3qQ1geC8ym7P7jYXWAyfA4Yjm9jFMTEbNb/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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcar_DZ2Z6Y8MiQnGbAB_l_vjh2fn5zvtHMRjcvTeWQz6H8IN6XeffWMaOIQxSkKutaa0qusTgaW1R0X58p4qGGhI9fkwBKDUqfXYzeOKWgUhop81a3TP24zU9VX9_GSk31ceJ2uB8yt5A/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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6aBkQbQRlS_hb_B6-LX2tkN2Oj5QOJKM5q-wwNIA_EZwPYYwavr81ejYMQUaTl57MO5HZ3BY4ek6zkil-RzUVN2NSWSYHK-sCC0L4tTnM3dLuarAtCnXrgExE26ApIVzYf3NyPzViX0j1/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