Index: openacs-4/packages/faq-portlet/tcl/faq-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/faq-portlet/tcl/faq-portlet-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/faq-portlet/tcl/faq-portlet-procs.tcl 9 Oct 2001 15:42:09 -0000 1.6 +++ openacs-4/packages/faq-portlet/tcl/faq-portlet-procs.tcl 17 Oct 2001 19:30:58 -0000 1.7 @@ -63,43 +63,38 @@ # things we need in the config: package_id - ns_log notice "AKS55 got here" - - # a big-time query from file-storage - set query " select faq_id, faq_name - from acs_objects o, faqs f - where object_id = faq_id + set query "select f.faq_id, f.faq_name, entry_id, question + from acs_objects o, faqs f, faq_q_and_as qa + where object_id = f.faq_id and context_id = $config(package_id) - order by faq_name" + and qa.faq_id(+) = f.faq_id" set data "" set rowcount 0 - db_foreach select_files_and_folders $query { - append data "
faq_id | -Name | +FAQ | +Question |
more..." - } + } set code [template::adp_compile -string $template] set output [template::adp_eval code] - ns_log notice "AKS57 got here $output" - + return $output }