[Home]WikiPatches/DigestedSummary

UseModWiki | WikiPatches | RecentChanges | Preferences

In sub DoEdit, replace

  $summary = &GetParam("summary", "*");
  print "<p>", T('Summary:'),
        $q->textfield(-name=>'summary',
                      -default=>$summary, -override=>1,
                      -size=>60, -maxlength=>200);

with

  # MeatBall:DigestedSummary
  $summary = '*';
  $summary = $Text{'summary'} if $Now - $Section{'ts'} < 60*60*24*$KeepDays;
  $summary = &GetParam( 'summary', $summary );

  print "<p>", T('Summary:'),
         $q->textarea(-name=>'summary', -default=>$summary, -override=>1, -style
=>'width:100%;height:4em', -wrap=>'virtual');

-- SunirShah


UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited May 2, 2005 1:55 am by CPE00c049e69a7f-CM000f9f7c349a.cpe.net.cable.rogers.com (diff)
Search: