The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

lib/mktemp-selectview.pl - return available template editor views

SYNOPSIS

  require "$ROADS::Lib/mktemp-selectview.pl";
  &SelectEditingView;

DESCRIPTION

This package defines a function which returns a list of the available template editing views for this particular template type.

METHODS

SelectEditingView;

This function uses the CGI variables originalhandle and templatetype to determine the views which are available in addition to the default "ALL" view which includes all attributes in the template.

The list of views is stored in a global hash array views, and a page of HTML which may have these interpolated by variable substitution.

FILES

config/mktemp-views/* - the available views, see the mktemp.pl manual page for more information on the file format.

config/multilingual/*/mktemp/selectview.html - the HTML form which lets the template editor user select the editing view to use.

SEE ALSO

"mktemp.pl" in admin-cgi

COPYRIGHT

Copyright (c) 1988, Martin Hamilton <martinh@gnu.org> and Jon Knight <jon@net.lut.ac.uk>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

It was developed by the Department of Computer Studies at Loughborough University of Technology, as part of the ROADS project. ROADS is funded under the UK Electronic Libraries Programme (eLib), the European Commission Telematics for Research Programme, and the TERENA development programme.

AUTHOR

Jon Knight <jon@net.lut.ac.uk>