The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Public Documents - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: Public Documents (/showthread.php?tid=3999)



Public Documents - apowell - 2012-12-12

I need some public documents on my site. Setting this up seems easy enough thanks to the file manager.

My idea is to upload files into the "public docs" directory in /uploads/ that are public documents for display on the website. How can I set it up so that I can have a page where all the files I upload into this directory are displayed for people to download?


RE: Public Documents - Timbow - 2012-12-12

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?


RE: Public Documents - apowell - 2012-12-12

(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.


RE: Public Documents - shawn_a - 2012-12-12

Simpledir plugin


RE: Public Documents - apowell - 2012-12-12

(2012-12-12, 10:35:30)shawn_a Wrote: Simpledir plugin

Is there any way that I can define multiple directory listings instead of just one?