Index: openacs-4/packages/curriculum/lib/user-curriculums.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/user-curriculums.tcl,v diff -u -r1.4.2.1 -r1.4.2.2 --- openacs-4/packages/curriculum/lib/user-curriculums.tcl 2 Dec 2003 15:57:32 -0000 1.4.2.1 +++ openacs-4/packages/curriculum/lib/user-curriculums.tcl 4 Dec 2003 12:06:22 -0000 1.4.2.2 @@ -11,17 +11,19 @@ logged_in_p:onevalue } -# package_id may or may not be provided as an attribute with the tag. +# "package_id" may or may not be provided as an attribute with the tag. if { ![info exists package_id] } { set package_id [curriculum::conn package_id] +} + +# "template" may or may not be provided as an attribute with the tag. +if { ![info exists template] } { # Use the ordinary template (user-curriculums.adp). set template "" } else { - # package_id provided. - # Assume it came from the portlet and use the "summary" template. + # Assume "template" came from the portlet and calculate the community name, etc. set community_name [site_nodes::get_parent_name -package_id $package_id] set indent [string repeat " " 4] - set template /packages/curriculum/lib/summary } set logged_in_p [ad_conn user_id]