Index: openacs-4/packages/dotlrn-bboard/tcl/dotlrn-bboard-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bboard/tcl/dotlrn-bboard-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn-bboard/tcl/dotlrn-bboard-procs.tcl 13 Nov 2001 16:20:51 -0000 1.6 +++ openacs-4/packages/dotlrn-bboard/tcl/dotlrn-bboard-procs.tcl 26 Nov 2001 22:37:06 -0000 1.7 @@ -52,6 +52,13 @@ # set up a forum inside that instance bboard_forum_new -bboard_id $package_id -short_name "Discussions" + # get the portal_template_id by callback + set pt_id [dotlrn_community::get_portal_template_id $community_id] + + # set up the DS for the portal template + bboard_portlet::make_self_available $pt_id + bboard_portlet::add_self_to_page $pt_id $package_id + # return the package_id return $package_id } Index: openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl 10 Nov 2001 18:45:47 -0000 1.5 +++ openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl 26 Nov 2001 22:35:21 -0000 1.6 @@ -49,6 +49,14 @@ set package_key [package_key] set package_id [dotlrn::instantiate_and_mount $community_id $package_key] + # portal template stuff + # get the portal_template_id by callback + set pt_id [dotlrn_community::get_portal_template_id $community_id] + + # set up the DS for the portal template + faq_portlet::make_self_available $pt_id + faq_portlet::add_self_to_page $pt_id $package_id + # return the package_id return $package_id } Index: openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 10 Nov 2001 21:44:52 -0000 1.7 +++ openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 26 Nov 2001 22:36:28 -0000 1.8 @@ -71,12 +71,21 @@ # FIXME: Set up permissions on this folder + # non-member page stuff # Get non member page_id set non_member_page_id [dotlrn_community::get_community_non_members_page_id $community_id] # Make file storage available public-folder only at community non-member page fs_portlet::add_self_to_page $non_member_page_id $package_id $public_folder_id + # portal template stuff + # get the portal_template_id by callback + set pt_id [dotlrn_community::get_portal_template_id $community_id] + + # set up the DS for the portal template + fs_portlet::make_self_available $pt_id + fs_portlet::add_self_to_page $pt_id $package_id + # return the package_id return $package_id } Index: openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl 12 Nov 2001 05:05:42 -0000 1.2 +++ openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl 26 Nov 2001 22:41:51 -0000 1.3 @@ -49,9 +49,14 @@ # create the news package instance (all in one, I've mounted it) set package_key [package_key] set package_id [dotlrn::instantiate_and_mount $community_id $package_key] - # set package_id [site_node_mount_application -return package_id $node_id $package_key $package_key $package_key] - # return the package_id + # portal template stuff + set pt_id [dotlrn_community::get_portal_template_id $community_id] + + # set up the DS for the portal template + news_portlet::make_self_available $pt_id + news_portlet::add_self_to_page $pt_id $package_id + return $package_id }