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.14 -r1.15 --- openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl 29 Mar 2002 19:19:43 -0000 1.14 +++ openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl 16 Apr 2002 13:58:05 -0000 1.15 @@ -65,6 +65,17 @@ } { Add the news applet to a specifc dotlrn community } { + # 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 + + if {[dotlrn_community::dummy_comm_p -community_id $community_id]} { + news_portlet::add_self_to_page $pt_id 0 + return + } + # Callback to get node_id from community # REVISIT this (ben) set node_id [site_node_id [ad_conn url]] @@ -73,11 +84,6 @@ set package_key [package_key] set package_id [dotlrn::instantiate_and_mount $community_id $package_key] - # 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 # set up the DS for the admin portal