Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to embed documents into a WordPress page without having to download it to view

Posted on 2016-07-30
7
39 Views
Last Modified: 2016-07-31
Hi All

I am currently trying to transfer mainly word documents into a wordpress site and although I have found some neat tools such as

Embed Any Document by AWSM.in, This still requires each person who visits the page to download the document and does not generate a preview or display in the browser.

Is there something out there recommended to serve this purpose or am I trying to do something that is not possible?
0
Comment
Question by:IM&T SRFT
  • 4
  • 3
7 Comments
 
LVL 4

Accepted Solution

by:
Branislav Borojevic earned 500 total points
ID: 41735804
I suggest the Google Doc Embedder plugin: https://wordpress.org/plugins/google-document-embedder/

This plugin allows you to modify how you are presenting the files, without having front-end users to download the files.

googledocsembedder.gif
I hope this helps you with your resolution!

Regards,

Branislav
0
 

Author Comment

by:IM&T SRFT
ID: 41735834
Thank you for the post, I can only seem to get the the same point I got with turbo widget where the document comes up as 'preview not available' and I also notice that the version of the google doc embedder plugin seems to have the default browser option but mine does not you also have different viewer options, do you have the premium version by any chance?

GDE.PNG
0
 
LVL 4

Expert Comment

by:Branislav Borojevic
ID: 41735890
My settings are the same as yours, I just tested the functionality on my server and it shows the file that I tested it on.

I suggest to tick the Force download button off or completely disable the Download functionality.

Try embedding a test file in a page, like this:

[gview file="http://localhost/srftkb/wp-content/uploads/2016/07/testdocument.docx"]

Open in new window


It should work, but there is a chance that, if you are testing it on a local server, that it might not work because of that.

On content that is reachable by external users it should work with no issues.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:IM&T SRFT
ID: 41735892
Thank you again but still the same issue

2.PNG
I unchecked the option as suggested, what I will do tomorrow is upload the site to the server and see what difference that makes.

Thank you very much for sparing your time so far
0
 
LVL 4

Expert Comment

by:Branislav Borojevic
ID: 41735895
That would be the culprit. It needs to be on a live server in order for it to be able to work. Any plugin that uses Google API needs the file to be public. (at least on the web)

This is because the visualization libraries that your page requires are loaded dynamically before you use them. The code for loading the appropriate library is part of the included jsapi script, and is called when you invoke the google.load() method. Google' terms of service do not allow you to download the google.load or google.visualization code to use offline.

So I am positive that once you do it on a live server you will be successful.
0
 

Author Comment

by:IM&T SRFT
ID: 41735911
That's sounds great. Thee intention of the site is for it to be an intranet limited to access from 1 specified domain which is something I have never done before and maybe limiting access may also have an impact but I am going to post separately about this so not to confuse thee matter
0
 

Author Closing Comment

by:IM&T SRFT
ID: 41736789
Hi Branislav Borojevic

Thank you so much for your help on this issue, quite rightly it now works once I have got the site hosting online

However, I did switch back to the original plugin of Embed Any Document as it takes 2 mouse actions less to achieve what I want and it's my task to encourage another 30+ people that this new site is a worthwhile upgrade from the current one.

Thank you once again
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help cleaning out CSS 2 61
How to avoid jquery conflicts in Wordpress ? 4 37
Sending emails using checkbox selection 3 71
if (is_singular not working 5 17
Who says nothing in life is free? WordPress.com is a freebie. WordPress.org's downloadable publishing platform is free. Heck, even WordPressMU is free. WordPress is an open source project, which means it can be used on any personal or commerc…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question