Index: openacs-4/packages/fs-portlet/fs-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/fs-portlet.info,v diff -u -r1.3 -r1.4 --- openacs-4/packages/fs-portlet/fs-portlet.info 9 Oct 2001 06:20:36 -0000 1.3 +++ openacs-4/packages/fs-portlet/fs-portlet.info 16 Jan 2002 21:46:41 -0000 1.4 @@ -7,26 +7,29 @@ f t - + oracle + postgresql - url="mailto:arjun@openforce.net">Arjun Sanyal + url="mailto:arjun@openforce.net">Arjun Sanyal Creates fs datasource for portal portlets. OpenForce, Inc. - + + + - + Index: openacs-4/packages/fs-portlet/sql/oracle/fs-portlet-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/sql/oracle/fs-portlet-create.sql,v diff -u -r1.7 -r1.8 --- openacs-4/packages/fs-portlet/sql/oracle/fs-portlet-create.sql 17 Nov 2001 22:32:22 -0000 1.7 +++ openacs-4/packages/fs-portlet/sql/oracle/fs-portlet-create.sql 16 Jan 2002 21:46:41 -0000 1.8 @@ -60,6 +60,15 @@ ); + -- link_hideable_p + portal_datasource.set_def_param ( + datasource_id => ds_id, + config_required_p => 't', + configured_p => 't', + key => 'link_hideable_p', + value => 't' +); + -- fs-specific params -- community_id must be configured Index: openacs-4/packages/fs-portlet/www/fs-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/www/fs-portlet.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/fs-portlet/www/fs-portlet.adp 16 Jan 2002 01:36:19 -0000 1.1 +++ openacs-4/packages/fs-portlet/www/fs-portlet.adp 16 Jan 2002 21:46:41 -0000 1.2 @@ -2,28 +2,28 @@ - + - + - - + - - + + - + - + - + Index: openacs-4/packages/fs-portlet/www/fs-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/www/fs-portlet.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/fs-portlet/www/fs-portlet.tcl 16 Jan 2002 01:36:19 -0000 1.1 +++ openacs-4/packages/fs-portlet/www/fs-portlet.tcl 16 Jan 2002 21:46:41 -0000 1.2 @@ -9,22 +9,26 @@ } array set config $cf - set user_id [ad_conn user_id] - set list_of_folder_ids $config(folder_id) +# set up the multirow datasource using the db_multirow proc and 1 id set my_folder_id [lindex $list_of_folder_ids 0] -#foreach my_folder_id $list_of_folder_ids { - - db_multirow -local items select_files_and_folders {} { - set package_id [db_string select_package_id {}] - -# set items(url) \ -# [dotlrn_community::get_url_from_package_id -package_id $package_id] - +db_multirow -local foo select_files_and_folders {} { + + # we can set array vars for this row + set foo(url) [dotlrn_community::get_url_from_package_id \ + -package_id [db_string select_package_id {}]] +} + +foreach my_folder_id [lrange $list_of_folder_ids 1 end] { + + # use the append switch to add rows to the datasource + db_multirow -local -append foo select_files_and_folders {} { + set foo(url) [dotlrn_community::get_url_from_package_id \ + -package_id [db_string select_package_id {}]] } -#} +} ad_return_template
@items.name@ + @foo.name@ @items.type@@foo.type@@items.num@ items@foo.num@ items @items.num@ item@foo.num@ item @items.name@ @foo.name@ File\[download\]\[download\]