Things you need
- Create a folder in Google Drive and put all your necessary files in it.
- Share that folder and set access such as to allow public access or anyone with the link can view the content.
- Copy the folder id from the link to share.
Now wherever you want to embed this folder on your website enter this code -
<iframe frameborder="0" height="330px" src="http://drive.google.com/embeddedfolderview?hl=en&id=0B18YRYq_f_eCeHVhdFlnUGR3cmM#grid" width="100%"></iframe>
Replace the id= with the id you copied from the link to share (red part) and if you wish you can also change the #grid to #list (green part) to display a list instead of grid.
Note: The minimum height for grid mode should be around 330px, else id would cut off the icons and would display scroll bars. Use css to do the rest you need with styling.
This is great! Thanks. Do you know how to make the google docs links download links rather than redirect links to google docs? I want people to be able to click them, and they download.
ReplyDeleteIt can be done and its very simple actually. Click here for an example.
DeleteStep 1 - Create a folder on google driver and share it making it public.
Step 2 - Select that folder and click details button.
Step 3 - Click details tab.
Step 4 - Copy the HOSTING link from it.
Step 5 - Upload your files in that folder and then link your downloads as HOSTING LINK/FILE_NAME.EXTENSION
thanks for it,but i am bit confused with ur blog template, coding is out box to copy, r to read
ReplyDeletePerfect! Thanks for the missing link. It’s a shame G doesn’t make it simpler using iframes.
ReplyDelete