Pete Foulkes Posted February 21, 2019 Share Posted February 21, 2019 Hi all, Was just wondering if anyone has some code that could hide the download button of the PDF widget? I do like the presentation mode feature that comes in the same drop-down menu, however, I would be willing to sacrifice this as I suspect it will be too difficult to hide individual menu items rather than the whole menu? Many thanks in advance, Pete Link to comment Share on other sites More sharing options...
Graham Quince Posted February 21, 2019 Share Posted February 21, 2019 I've moved this to coding, as there's no option in the widget settings for hiding the download. Can I ask what the problem with the download button is? Anyone who knows a little about web browsers would be able to download a PDF even without the button. Link to comment Share on other sites More sharing options...
adamw Posted February 21, 2019 Share Posted February 21, 2019 I think the PDF viewer is an external library that we use, so I don't know how easy it will be to remove that option. If I get a moment I'll have a look and see if there is anything we can do. Link to comment Share on other sites More sharing options...
Pete Foulkes Posted February 22, 2019 Author Share Posted February 22, 2019 A staff member wanted to upload a resource he's purchased onto a site but didn't want others obtaining a copy. There are those who would know how to find the file sure, but the average user wouldn't know. If it's external then I'll just tell him it can't be done as it's probably more trouble than it's worth for you guys. Many thanks Link to comment Share on other sites More sharing options...
Graham Quince Posted February 22, 2019 Share Posted February 22, 2019 How about this method: Add a File Drop widget to the page Set it to Group instead of Individual Upload the PDF On the link provided, right-click and copy the link of the file Add an HTML widget to the page Paste the following code: <embed src="YOUR FILE URL" width="600" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html"> Paste in the URL of the PDF copied in Step 4 Delete the end of the URL (this bit in bold):https://frog.yourschool.co.uk/app/file/resource/207A2FE3200305070F469F2A58647E050FE85AFCFC230269/?mode=download 1 Link to comment Share on other sites More sharing options...
Pete Foulkes Posted March 1, 2019 Author Share Posted March 1, 2019 Will give it a try thanks Graham ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now