1 # <a name="Package <code>TWiki::UI::View="></a> Package =TWiki::UI::View
3 UI delegate for view function
7 <li><a href="#Package =TWiki::UI::View="> Package TWiki::UI::View</a><ul>
8 <li><a href="#StaticMethod <strong>view</strong> ($session)"> StaticMethod view <tt>($session)</tt></a></li>
9 <li><a href="#StaticMethod <strong>viewfile</strong> ($sessio"> StaticMethod viewfile <tt>($session,$web,$topic,$query)</tt></a></li>
15 ## <a name="StaticMethod <strong>view</strong> ($session)"></a> [[StaticMethod]] **view** `($session)`
17 `view` command handler. This method is designed to be invoked via the `UI::run` method.
19 Generate a complete HTML page that represents the viewed topics. The view is controlled by CGI parameters as follows:
21 <table border="1" cellpadding="0" cellspacing="0">
23 <td><code>rev</code></td>
24 <td> topic revision to view </td>
27 <td><code>section</code></td>
28 <td> restrict view to a named section </td>
31 <td><code>raw</code></td>
32 <td> no format body text if set </td>
35 <td><code>skin</code></td>
36 <td> comma-separated list of skin(s) to use </td>
39 <td><code>contenttype</code></td>
40 <td> Allows you to specify an alternate content type </td>
44 ## <a name="StaticMethod <strong>viewfile</strong> ($sessio"></a> [[StaticMethod]] **viewfile** `($session,$web,$topic,$query)`
46 `viewfile` command handler. This method is designed to be invoked via the `UI::run` method. Command handler for viewfile. View a file in the browser. Some parameters are passed in CGI query:
48 <table border="1" cellpadding="0" cellspacing="0">
50 <td><code>filename</code></td>
51 <td> Attachment to view </td>
54 <td><code>rev</code></td>
55 <td> Revision to view </td>