Index: openacs-4/packages/xowiki/tcl/syndicate-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/syndicate-procs.tcl,v diff -u -r1.26 -r1.27 --- openacs-4/packages/xowiki/tcl/syndicate-procs.tcl 13 Nov 2007 11:36:11 -0000 1.26 +++ openacs-4/packages/xowiki/tcl/syndicate-procs.tcl 19 Nov 2007 12:37:03 -0000 1.27 @@ -64,6 +64,7 @@ return "[my css_link] [my tag title $title] @@ -147,7 +148,7 @@ } set sql [::xo::db::sql select \ - -vars "s.body, p.name, p.creator, p.title, p.page_id, instance_attributes, \ + -vars "s.body, s.rss_xml_frag, p.name, p.creator, p.title, p.page_id, instance_attributes, \ p.object_type as content_type, p.last_modified, p.description" \ -from "syndication s, cr_items ci, $base_table p $extra_from" \ -where "ci.parent_id = $folder_id \ @@ -158,32 +159,37 @@ -orderby "p.last_modified desc" \ -limit [my limit]] +# set content [my head] +# my log "--TITLE=[my title], DESC=[my description]" +# db_foreach get_pages $sql { +# if {[string match "::*" $name]} continue +# if {$content_type eq "::xowiki::PageTemplate"} continue +# set description [string trim $description] +# if {$description eq ""} {set description $body} +# if {$title eq ""} {set title $name} +# set time [::xo::db::tcl_date $last_modified tz] +# set link [::xowiki::Includelet detail_link \ +# -package_id $package_id -name $name \ +# -absolute true \ +# -instance_attributes $instance_attributes] +# #append title " ($content_type)" +# set time "[clock format [clock scan $time] -format {%a, %d %b %Y %T}] ${tz}00" +# append content [my item \ +# -creator $creator \ +# -title $title \ +# -link $link \ +# -guid $siteurl/$page_id \ +# -description $description \ +# -pubdate $time \ +# ] +# } + set content [my head] db_foreach get_pages $sql { if {[string match "::*" $name]} continue if {$content_type eq "::xowiki::PageTemplate"} continue - - set description [string trim $description] - if {$description eq ""} {set description $body} - if {$title eq ""} {set title $name} - set time [::xo::db::tcl_date $last_modified tz] - set link [::xowiki::Includelet detail_link \ - -package_id $package_id -name $name \ - -absolute true \ - -instance_attributes $instance_attributes] - - #append title " ($content_type)" - set time "[clock format [clock scan $time] -format {%a, %d %b %Y %T}] ${tz}00" - append content [my item \ - -creator $creator \ - -title $title \ - -link $link \ - -guid $siteurl/$page_id \ - -description $description \ - -pubdate $time \ - ] - } - + append content $rss_xml_frag + } append content [my tail] return $content }