Index: openacs-4/packages/xowiki/www/portlets/recent.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/portlets/Attic/recent.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/xowiki/www/portlets/recent.tcl 19 Jun 2006 00:40:04 -0000 1.5 +++ openacs-4/packages/xowiki/www/portlets/recent.tcl 17 Aug 2006 01:44:26 -0000 1.6 @@ -10,39 +10,43 @@ ::xowiki::Page proc __render_html { -folder_id + -package_id -max_entries } { TableWidget t1 -volatile \ -columns { - Field date -label "Modification Date" - AnchorField title -label [_ xowiki.page_title] + Field date -label "Modification Date" + AnchorField title -label [_ xowiki.page_title] } db_foreach get_pages \ "select i.name, r.title, \ - to_char(r.publish_date,'YYYY-MM-DD HH24:MI:SS') as publish_date \ - from cr_items i, cr_revisions r, xowiki_page p \ - where i.parent_id = $folder_id \ - and r.revision_id = i.live_revision \ - and p.page_id = r.revision_id \ - order by r.publish_date desc limit $max_entries\ + to_char(r.publish_date,'YYYY-MM-DD HH24:MI:SS') as publish_date \ + from cr_items i, cr_revisions r, xowiki_page p \ + where i.parent_id = $folder_id \ + and r.revision_id = i.live_revision \ + and p.page_id = r.revision_id \ + order by r.publish_date desc limit $max_entries\ " { - if {$title eq ""} {set title $name} - - t1 add \ - -title $title \ - -title.href [::xowiki::Page pretty_link $name] \ - -date $publish_date + if {$title eq ""} {set title $name} + + t1 add \ + -title $title \ + -title.href [::$package_id pretty_link $name] \ + -date $publish_date } return [t1 asHTML] } +ns_log notice "--I folder=[$__including_page set parent_id]" + set link "" set content [::xowiki::Page __render_html \ - -folder_id [$__including_page set parent_id] \ - -max_entries [expr {[info exists max_entries] ? $max_entries : 20}] \ - ] + -folder_id [$__including_page set parent_id] \ + -package_id [$__including_page set package_id] \ + -max_entries [expr {[info exists max_entries] ? $max_entries : 20}] \ + ] if {![info exists skin]} {set skin portlet-skin} if {![string match /* $skin]} {set skin [file dir $__adp_stub]/$skin}