2012-12-12, 09:44:27
(2012-12-12, 09:37:58)Timbow Wrote: You make a page and in the body of the page you list the documents, then make each entry in the list a link to the document itself. Or were you asking something more complicated?
I wanted something where I can just upload documents into a folder and they are already displayed. I have started trying to develop this myself. What I did was make a new template in my theme that includes "showcontent.php". This creates a new function showContent which uses opendir to display any directory. I then call showContent(Path) in the template straight after it grabs the page content.
This works well but it's only halfway there! I need to manually type in the path I want to display in the template. Hopefully we can figure out a way to type the directory into a box when I make the new page and select the template for use.