Index: openacs-4/packages/static-portlet/www/static-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/static-portlet.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/static-portlet/www/static-portlet.tcl 18 Feb 2002 05:23:12 -0000 1.2 +++ openacs-4/packages/static-portlet/www/static-portlet.tcl 18 Feb 2002 20:23:00 -0000 1.3 @@ -8,10 +8,13 @@ array set config $cf -set instance_id $config(instance_id) +# one piece of content only per portlet +set content_id $config(content_id) -db_multirow content_multi select_content { +if {[catch {set success_p [db_0or1row select_content { select content, pretty_name from static_portal_content - where instance_id = :instance_id -} + where content_id = :content_id +}]} errmsg]} { + set success_p 0 +}