Index: openacs-4/packages/lars-blogger/lars-blogger.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/lars-blogger.info,v diff -u -r1.35 -r1.36 --- openacs-4/packages/lars-blogger/lars-blogger.info 27 Feb 2004 19:16:24 -0000 1.35 +++ openacs-4/packages/lars-blogger/lars-blogger.info 1 Apr 2004 13:05:30 -0000 1.36 @@ -7,45 +7,39 @@ f f - + Lars Pind Individual or collaborative web logs. 2004-02-11 Collaboraid Weblog creation and management with notifications, RSS, trackpack, technorati, blogroll, pings, archives, draft and published entries, includable templates for presenting on other pages, and permissioning for multiple users. - + + - - + - - - + - - - - - @@ -54,6 +48,14 @@ + + + + + + + + Index: openacs-4/packages/lars-blogger/www/entry-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/www/entry-edit.tcl,v diff -u -r1.21 -r1.22 --- openacs-4/packages/lars-blogger/www/entry-edit.tcl 7 Feb 2004 13:50:40 -0000 1.21 +++ openacs-4/packages/lars-blogger/www/entry-edit.tcl 1 Apr 2004 13:05:30 -0000 1.22 @@ -81,10 +81,11 @@ } } +set container_id [ad_conn [parameter::get -parameter CategoryContainer -default package_id]] # SWC (Site-wide categories): category::ad_form::add_widgets \ - -container_object_id $package_id \ + -container_object_id $container_id \ -categorized_object_id [value_if_exists entry_id] \ -form_name entry @@ -142,7 +143,7 @@ # SWC Collect categories from all the category widgets set category_ids [category::ad_form::get_categories \ - -container_object_id $package_id] + -container_object_id $container_id] } \ -new_data { Index: openacs-4/packages/lars-blogger/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/www/index.adp,v diff -u -r1.34 -r1.35 --- openacs-4/packages/lars-blogger/www/index.adp 27 Feb 2004 19:45:28 -0000 1.34 +++ openacs-4/packages/lars-blogger/www/index.adp 1 Apr 2004 13:05:30 -0000 1.35 @@ -63,7 +63,7 @@

@sw_categories.tree_name@

- @sw_categories.sw_category_name@
+ @sw_categories.pad;noquote@@sw_categories.category_name@ (@sw_categories.count@)
@@ -81,7 +81,7 @@

Notifications

- @notification_chunk;noquote@ + @notification_chunk;noquote@
Index: openacs-4/packages/lars-blogger/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/www/index.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/lars-blogger/www/index.tcl 27 Feb 2004 18:30:59 -0000 1.22 +++ openacs-4/packages/lars-blogger/www/index.tcl 1 Apr 2004 13:05:30 -0000 1.23 @@ -179,16 +179,12 @@ db_multirow categories categories {} # SWC - -db_multirow -unclobber -extend {sw_category_name tree_name} \ - sw_categories sw_categories { - select c.category_id as sw_category_id, c.tree_id - from categories c, category_tree_map ctm - where ctm.tree_id = c.tree_id - and ctm.object_id = :package_id} { - set sw_category_name [category::get_name $sw_category_id] - set tree_name [category_tree::get_name $tree_id] +set counts {} +db_foreach catcount {select c.category_id as catid, count(*) as count from category_object_map c, pinds_blog_entries e where e.package_id = :package_id and c.object_id = e.entry_id group by c.category_id} { + lappend counts $catid $count } +set container_id [ad_conn [parameter::get -parameter CategoryContainer -default package_id]] +category_tree::get_multirow -datasource sw_categories -container_id $container_id -category_counts $counts # Cut the URL off the last item in the context bar if { [llength $context] > 0 } { Index: openacs-4/packages/lars-blogger/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/www/admin/index.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/lars-blogger/www/admin/index.tcl 28 Jan 2004 15:46:00 -0000 1.10 +++ openacs-4/packages/lars-blogger/www/admin/index.tcl 1 Apr 2004 13:05:30 -0000 1.11 @@ -19,7 +19,7 @@ set category_map_url [export_vars -base \ "[site_node::get_package_url -package_key categories]cadmin/one-object" \ - { { object_id $package_id } }] + { { object_id {[ad_conn [parameter::get -parameter CategoryContainer -default package_id]]} } }] set instance_feed_p [db_string rss_feed_p {}]