Forum OpenACS Q&A: Response to dynamic pages and subdirectories

Collapse
Posted by Fred Yankowski on
I see how the zz-postload.tcl file arranges to load only those .xql files directly under ROOT/www (and ROOT/tcl).  Jun suggests using a package rather than putting xql files under www.  What package would I use for that when I just want to add some simple pages to the site, where those pages need xql files?

Perhaps I am missing some fundamental assumption about how sites are to be built in OpenACS 4.x.  Why can't I just build up an arbitrarily complex set of directories and files under ROOT/www, where some (many) of those files access the database and therefore need XQL files?  Could zz-postload.tcl traverse all directories under ROOT/www and load all the .xql files found there, rather than only loading files found at the top level?