We are going to add a requested feature to loncapa. We want the name of the file being editted to show up while in CSTR and editing an html Page
<LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$"> SetHandler perl-script PerlHandler Apache::lonxml </LocationMatch>
# # Edit action? Insert editing commands #
that make take a closer look at the surrounding code. Looks like the line
$result='<html><body bgcolor="#FFFFFF"></body></html>';Creates the webpage that has the edit field in it.
$result='<html><body bgcolor="#FFFFFF">'; $result.='<b>Hey is the correct location?</b>'; $result.='</body></html>';And create a new .html file.
my $file=&Apache::lonnet::filelocation("",$request->uri);and
my $filecontents=&Apache::lonnet::getfile($file);Looks like $file contains the file name ,a $request->uri would be the requested url.
$result.=';<b>Hey is the correct location?</b>';to
$result.='<b>Editing file: '.$request->uri.'</b>';