Index: openacs-4/packages/acs-templating/tcl/list-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/list-procs.tcl,v diff -u -N -r1.43 -r1.44 --- openacs-4/packages/acs-templating/tcl/list-procs.tcl 14 May 2007 20:30:27 -0000 1.43 +++ openacs-4/packages/acs-templating/tcl/list-procs.tcl 25 Jul 2007 12:18:04 -0000 1.44 @@ -954,7 +954,13 @@ -parameter DefaultListStyle \ -default "table"]] } - set file_stub "[template::get_resource_path]/lists/$style" + + # Added support for storing form templates outside acs-templating + if {[regexp {^/(.*)} $style path]} { + set file_stub "[acs_root_dir]$path" + } else { + set file_stub [template::get_resource_path]/lists/$style + } # ensure that the style template has been compiled and is up-to-date template::adp_init adp $file_stub @@ -1533,7 +1539,12 @@ -parameter DefaultListFilterStyle \ -default "filters"] } - set file_stub "[template::get_resource_path]/lists/$style" + # Added support for storing form templates outside acs-templating + if {[regexp {^/(.*)} $style path]} { + set file_stub "[acs_root_dir]$path" + } else { + set file_stub [template::get_resource_path]/lists/$style + } # ensure that the style template has been compiled and is up-to-date template::adp_init adp $file_stub