This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Inserts formatted or unformatted page contents.


Usage#

<wiki:InsertPage page="<page name>" mode="plain|html" />

Parameters#

page
The name of the page to insert. If not set, inserts the current page.
mode
If set to "plain", inserts the actual WikiMarkup (for example, for an editor). If "html", will insert rendered HTML snippet. Default is to insert HTML.

Example#

<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<html>
  <head>
     <title><wiki:PageName /></title>
  </head>
  <body>
     <h1><wiki:PageName /></h1>
     <wiki:InsertPage />
     <hr /><br />
     <wiki:EditLink>Edit this page</wiki:EditLink>
  </body>
</html>

This is an extraordinarily minimal template for JSPWiki, which basically just displays the page name in a h1-type heading, and then inserts the renderd page contents.

Example, rendered:#

<wiki:InsertPage page="<page name>" mode="html" /> <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <html> <head> <title><wiki:PageName /></title> </head> <body> <h1><wiki:PageName /></h1> <wiki:InsertPage /> <hr /><br /> <wiki:EditLink>Edit this page</wiki:EditLink> </body> </html>


CategoryOfficialDocumentation.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 11-Mar-2010 14:19 by 192.109.190.88.