Index: openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl 4 Oct 2001 17:18:27 -0000 1.1 +++ openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl 4 Oct 2001 18:17:37 -0000 1.2 @@ -12,7 +12,7 @@ namespace eval bboard_portlet { - ad_proc -private name {} { + ad_proc -private my_name {} { This datasource's name @author arjun@openforce.net @@ -25,13 +25,14 @@ Adds a bboard PE to the given page with the instance key being opaque data in the portal configuration. + @return element_id The new element's id @param page_id The page to add self to @param instance_id The bboard instace to show @author arjun@openforce.net @creation-date Sept 2001 } { # Tell portal to add this element to the page - set element_id [portal::add_element {$page_id [name]}] + set element_id [portal::add_element $page_id [my_name]] # The default param "instance_id" must be configured set key "instance_id" @@ -41,6 +42,7 @@ portal::set_element_param $element_id $key $instance_id + return $element_id } ad_proc remove_self_from_page { portal_id instance_id } { Index: openacs-4/packages/bboard-portlet/www/show.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bboard-portlet/www/Attic/show.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/bboard-portlet/www/show.adp 4 Oct 2001 17:21:06 -0000 1.1 +++ openacs-4/packages/bboard-portlet/www/show.adp 4 Oct 2001 18:14:44 -0000 1.2 @@ -1,17 +1,12 @@ -