Index: openacs-4/packages/weblogger-portlet/www/weblogger-portlet-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/weblogger-portlet/www/weblogger-portlet-postgresql.xql,v diff -u -r1.4.2.1 -r1.4.2.2 --- openacs-4/packages/weblogger-portlet/www/weblogger-portlet-postgresql.xql 13 May 2004 15:31:51 -0000 1.4.2.1 +++ openacs-4/packages/weblogger-portlet/www/weblogger-portlet-postgresql.xql 2 Dec 2005 08:41:18 -0000 1.4.2.2 @@ -21,7 +21,7 @@ acs_objects o on (o.object_id = e.entry_id) join acs_users_all u on (u.user_id = o.creation_user) where p.package_id in ([join $list_of_package_ids ", "]) - and e.entry_date > current_timestamp - interval '30 days' + and e.entry_date > current_timestamp - interval '$num_days_shown days' and e.draft_p = 'f' and e.deleted_p = 'f' order by p.package_id asc, e.entry_date desc, e.entry_date desc Index: openacs-4/packages/weblogger-portlet/www/weblogger-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/weblogger-portlet/www/weblogger-portlet.adp,v diff -u -r1.3.4.2 -r1.3.4.3 --- openacs-4/packages/weblogger-portlet/www/weblogger-portlet.adp 2 Feb 2005 17:55:07 -0000 1.3.4.2 +++ openacs-4/packages/weblogger-portlet/www/weblogger-portlet.adp 2 Dec 2005 08:41:18 -0000 1.3.4.3 @@ -23,6 +23,9 @@ <b>#weblogger-portlet.raquo#</b> <a href="@entries.add_url@">#weblogger-portlet.Add_entry#</a> </p> </if> + <p> + <b>#weblogger-portlet.raquo#</b> <a href="@entries.base_url@">#weblogger-portlet.FullView#</a> + </p> </multiple> </if> <else> Index: openacs-4/packages/weblogger-portlet/www/weblogger-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/weblogger-portlet/www/weblogger-portlet.tcl,v diff -u -r1.4.4.1 -r1.4.4.2 --- openacs-4/packages/weblogger-portlet/www/weblogger-portlet.tcl 2 Feb 2005 17:55:07 -0000 1.4.4.1 +++ openacs-4/packages/weblogger-portlet/www/weblogger-portlet.tcl 2 Dec 2005 08:41:18 -0000 1.4.4.2 @@ -35,6 +35,10 @@ } } +# Retrieve the days shown in the portlet from the parameter of the associated package +# As we do not have user parameters, choose the first package when outside a community. +set num_days_shown [parameter::get -package_id [lindex $list_of_package_ids 0] -parameter "NumDaysOnFrontPage" -default "30"] + db_multirow -extend { view_url add_url } entries entries {} { if { !$package_read_p($package_id) } { continue