Teacher needs help/advice making page for PDF downloads

This might not be useful if “I basically need something that will fit into the theme I am using” is a big concern but I create the title of each paper in the page and link it to dropbox whereupon the user views, prints or downloads. I’m easily swayed by the drag and drop ease on my laptop into any specific Dropbox folder. You will still have to go to dropbox to get the link then paste each link into the corresponding title your RW page. But then you’re good to go.

webdeer, per your request here’s the php code for the button download. I provided two examples of the button code that goes on the webpage… with and without Google tracking for the button clicks. So there are two examples of the button, then the third is the short script itself. The script needs to go into the same folder as the file it is to downlaod. Note also that you should change Content type for different file types (mobi, epub, etc.)

This is the simplest form of the script. There are many examples on web with error checking, error handling, logging, etc.

Here are the three pieces of code: (thanks Jannis)
https://jsfiddle.net/1sbz0105/1/

1 Like

The FileSafe stack by SeyDesign would let you link to files you upload onto your site. Each file can be given a different name like Algebra 1, Calc 1, etc. The students can then click on the link to download the file. If there are similar solutions (the ExtraContent stack?) I’d like to know.

Another solution is simply to use the Pagesafe stack to protect the page, and then have a page linked to the landing page with just a flat directory of pdf’s or whatever docs you’re going to use. You could hand-code these and then dump your code into an html stack.

<li>
<a href="mysite/html/pdf/algebra1.pdf">Algebra 1</a> 
<li>
<a href="mystic/html/pdf/calc1.pdf">Calc 1</a>

Remember that your upload of all your pdf’s is separate from your upload of your Rapidweaver site.
Rapidweaver does play nice with html, though sometimes the Stacks need to be tweaked.

Hey George,

Don’t really have the time right now but just wanted to show you and example which may give you some inspiration (or not :sunglasses:). Each time I want to give access to several things on the same page I use the Toggle Stack and it works perfectly. Sitelok is great if you really need it, I bought it at a period of time I wanted to have a private section but finally lockdown was just enough for my needs. Here are the links with the Toggle stack: http://www.louiscesarewande.com/tutorials/index.php, http://www.louiscesarewande.com/registrations/registrations.php. The nice part is you can create links which will open the exact toggle you want to point: http://www.louiscesarewande.com/tutorials/index.php#my_bell_technique
Hope this helps.

https://stacks4stacks.com/toggle/
http://yourhead.com/lockdown

Thanks Louis. This seems like it might work, especially the toggle stack.

Hi George,

It’s mentioned already but as a teacher I strongly recommend you invest some time exploring all the features of Moodle before undertaking this project. Much of what you want to do already exists, plus there are a whole load of accessibility and security issues (for your students and content) that you are as yet unaware of from what you have mentioned. There are many good reasons why so schools and universities use Moodle. Do you really want to re-invent the wheel? I’d be surprised if you have the time lol.
Just off the top of my head as an example of Moodle features available, the parents of my students can access Moodle via the App on their phones and read / view / download the content I have decided that they can have access too. Have a look through iTunes at the Apps available for Moodle. How would you build all the features available from scratch?

If your school is Windows based then Windows Classroom is beginning to roll out, and syncs nicely with 365, so that may be worth checking out too.

I have a resources site of my own that has lesson plans, games, crafts, songs and so on that I made in Rapidweaver, if it provides you with some ideas - TheMagicCrayons.com.

Tim

If you want to go the SQL Route, maybe StackApps for RapidWeaver is for you?

Hi,
sorry I am so late, just came back in. …
Maybe you might want to take a look at https://docs.joeworkman.net/rapidweaver/stacks/x-ray
Cheers, Igor

2 Likes

The easiest way to display files in a directory doesn’t require any special stack. All you need to do is create a link to a directory that you create under your root directory. Then upload all of the files you wish people to have access to. If there is no index.html file in that directory, the files will display as long as you put a .htaccess file with the following content in the directory where the file resides.
This file should contain two lines, and two lines only. No file extension is needed:

Options +Indexes
IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=*

Here is an example:

http://saudiarabialaw.com/database/

I built the base site with Rapidweaver but this directory listing doesn’t need Rapidweaver. If RW has a more aesthetic way to display the files, I’d like to know. By the way, this required no coding other than the creation of the .htaccess file. The directory listing is generated automatically.

2 Likes

Hi George,

I have been using RW for many generations to do exactly what you are describing - creating a website that students can go to to access unit plans, handouts, links to simulations, links to ???, and resources in general.

If you take a look at my class website at www.dativebond.com/Ris and if this looks something like what you want to do, I would be happy to describe how I use RW, Stacks, and stack add-ons to set this up.

Good luck with the new school year!

Peace,
David Byrum

David:

Yes. Your site is much more along the lines of what I was looking to do, though my plan is to have mine much more heavily populated by downloadable files than general information about classes. I did look at your resources link and I like the way it creates a dropdown with the individual classes from which to choose files. Any stack suggestions to accomplish this would be very appreciated.

Thanks

I use code found here and embed it into RapidWeaver - http://tutorialzine.com/2014/09/cute-file-browser-jquery-ajax-php/

Cheers,

John

1 Like

@johnhiggins John,

That’s brilliant! Fantastic find. Easy to implement.

@Mathew What theme will you be using it with?

@johnhiggins Well I will use it immediately on part of a course website I’m developing. That site uses Will Woodgate’s Volcano theme. I will also use it in a future website using Foundry. Why do you ask?

BTW, both themes/approaches are Bootstrap-inspired.

Probably the route I’d take… upload all pdf-files to a dropbox-folder, then right-click to get the url and paste the url in the right spot in the Rapidweaver doc.

Hi George,

I’ve attached a small file with some steps and suggestions that have worked for me and may be of use to you too.

I am happy to exchange emails with you if I can answer any questions that you may have as you work on your website.

Good luck and have fun!

Peace,
David

Peace,
David Byrum
Head of Department, Science-Retired
Ruamrudee International School
6 Ramkhamhaeng 184 Road
Minburi, Bangkok, 10510
Thailand
(+66)(0) 2-791-8900
dlbyrum@earthlink.net
www.dativebond.com/Ris

Sorry for the delay in responding - I asked because the code from the site I linked to does not play well with Foundation due to the different versions of jQuery running. However, I have a version of the code that has been updated to work with the latest jQuery library if you want it?

@johnhiggins Yes, I’d love the newest version. Thanks in advance.

@johnhiggins and @Mathew – I know this thread is old, but came across it while looking for a solution to a similar problem. Wondering if “Cute File Browser with jQuery and PHP” referenced above in this string is still working for you? I downloaded the code, but it does not work for me. John mentioned a version that “plays nice” with newer versions of the jQuery library. I would be interested in trying that version of the js file. Also, the original site for this little gem said, “the PSD for the design is available for free to all of our newsletter subscribers! Join or login from here to download it,” but that link to the PSD is dead. Is this a dead-end and I should just continue looking elsewhere for solutions?