data/TWiki/TWikiUIViewDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 ---+ Package =TWiki::UI::View=
     2 
     3 UI delegate for view function
     4 
     5 
     6 %TOC%
     7 
     8 ---++ StaticMethod *view* <tt>($session)</tt>
     9 
    10 =view= command handler.
    11 This method is designed to be
    12 invoked via the =UI::run= method.
    13 
    14 Generate a complete HTML page that represents the viewed topics.
    15 The view is controlled by CGI parameters as follows:
    16 
    17 | =rev= | topic revision to view |
    18 | =section= | restrict view to a named section |
    19 | =raw= | no format body text if set |
    20 | =skin= | comma-separated list of skin(s) to use |
    21 | =contenttype= | Allows you to specify an alternate content type |
    22 
    23 
    24 
    25 ---++ StaticMethod *viewfile* <tt>($session,$web,$topic,$query)</tt>
    26 
    27 =viewfile= command handler.
    28 This method is designed to be
    29 invoked via the =UI::run= method.
    30 Command handler for viewfile. View a file in the browser.
    31 Some parameters are passed in CGI query:
    32 | =filename= | Attachment to view |
    33 | =rev= | Revision to view |
    34 
    35