--- loncom/interface/lonsimplepage.pm 2010/03/29 00:37:36 1.95 +++ loncom/interface/lonsimplepage.pm 2011/05/03 21:38:40 1.98 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.95 2010/03/29 00:37:36 raeburn Exp $ +# $Id: lonsimplepage.pm,v 1.98 2011/05/03 21:38:40 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -113,7 +113,7 @@ sub handler { # --------------------------------------------------------- The syllabus fields my %syllabusfields=&Apache::lonlocal::texthash( 'aaa_title' => 'Page Title', - 'bbb_content' => 'Content', + 'bbb_content' => ($target eq 'tex'?'':'Content'), 'ccc_webreferences' => 'Web References'); if ($group ne '') { $syllabusfields{'abb_links'} = &mt('Available Group Tools'); @@ -225,10 +225,10 @@ sub handler { } if ($group ne '') { $syllabus{'uploaded.photourl'}=&Apache::lonnet::userfileupload( - 'uploaddoc',1,"grouppage/$group"); + 'uploaddoc','coursedoc',"grouppage/$group"); } else { $syllabus{'uploaded.photourl'}= - &Apache::lonnet::userfileupload('uploaddoc',1,'simplepage'); + &Apache::lonnet::userfileupload('uploaddoc','coursedoc','simplepage'); } } $syllabus{'uploaded.lastmodified'}=time; @@ -393,8 +393,8 @@ sub handler { $target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_handlers, $group); if ($allowed && ($env{'form.grade_target'} ne 'tex')) { - $r->print(&Apache::lonhtmlcommon::htmlareaselectactive - ('bbb_content').''); + $r->print(&Apache::lonhtmlcommon::htmlareaselectactive(). + ''); } } else {