data/TWiki/TWikiUIViewDotPm.txt
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/TWikiUIViewDotPm.txt	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +---+ Package =TWiki::UI::View=
     1.5 +
     1.6 +UI delegate for view function
     1.7 +
     1.8 +
     1.9 +%TOC%
    1.10 +
    1.11 +---++ StaticMethod *view* <tt>($session)</tt>
    1.12 +
    1.13 +=view= command handler.
    1.14 +This method is designed to be
    1.15 +invoked via the =UI::run= method.
    1.16 +
    1.17 +Generate a complete HTML page that represents the viewed topics.
    1.18 +The view is controlled by CGI parameters as follows:
    1.19 +
    1.20 +| =rev= | topic revision to view |
    1.21 +| =section= | restrict view to a named section |
    1.22 +| =raw= | no format body text if set |
    1.23 +| =skin= | comma-separated list of skin(s) to use |
    1.24 +| =contenttype= | Allows you to specify an alternate content type |
    1.25 +
    1.26 +
    1.27 +
    1.28 +---++ StaticMethod *viewfile* <tt>($session,$web,$topic,$query)</tt>
    1.29 +
    1.30 +=viewfile= command handler.
    1.31 +This method is designed to be
    1.32 +invoked via the =UI::run= method.
    1.33 +Command handler for viewfile. View a file in the browser.
    1.34 +Some parameters are passed in CGI query:
    1.35 +| =filename= | Attachment to view |
    1.36 +| =rev= | Revision to view |
    1.37 +
    1.38 +