WorldWander logo
Main

The Road Behind

Venezuela
Trinidad
Curacao
Galapagos
Ecuador
Peru
Bolivia
Paraguay
Argentina
Chile
Hong Kong
Thailand North
Thailand South
Malaysia
Cambodia
Singapore
Nepal
Kathmandu
Royal Trek
Nepal Trek
India
India Palace
Udaipur
Bangalore
Greece
Islands
Rhodes
Camping
Olympia
Turkey
Istanbul
Bath
Bursa
Cappadocia
Bodrum
South Africa
Garden Route
Cape Town
Namibia
Fish River
Etosha
Botswana
Zimbabwe
Wedding
Great Ruins
Germany
Bathroom
Netherlands
Spain
Madrid
Seville
Granada
Gibraltar
Morocco
Portugal
Sintra
France
Normandy
Egypt
Pyramids
Nile
Aswan
Abusimbel
Luxor
Valley of Kings
Alexandria
Red Sea
Jordan
Kings Valley
Aman
Palestine

The Road Ahead

Isreal
Czech Republic
Austria
Italy
Switzerland
England
Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences


Referenced by
JSPWikiTags




JSPWiki v2.2.33


PageTypeTag


Includes its contents, if the page type matches.

JSPWiki handles attachments as a special type of a WikiPage. For example, page info is practically the same for both pages and attachments. Thus, sometimes you must be able to discern between these two types.


Usage

<wiki:PageType type="attachment|page|weblogentry">
   HTML or JSP data
</wiki:PageType>

Parameters

type
Either "attachment", "page", or "weblogentry". If "attachment", includes the body if the current page is an attachment; or if "page", includes the body if (and only if) the body is a standard WikiPage. If it is "weblogentry", then includes the body if and only if the page seems to be a web log entry.

Example

    <wiki:PageType type="page">
       <wiki:LinkTo>Back to <wiki:PageName/></wiki:LinkTo>
    </wiki:PageType>
    <wiki:PageType type="attachment">

       <form action="attach" method="POST" enctype="multipart/form-data">

           <%-- Do NOT change the order of wikiname and content, otherwise the 
                servlet won't find its parts. --%>

           <input type="hidden" name="page" value="<wiki:Variable var="pagename"/>">

           In order to update this attachment with a newer version, find the
           file using "Browse", then click on "Update".

           <P>
           <input type="file" name="content">
           <input type="submit" name="upload" value="Update">
           <input type="hidden" name="action" value="upload">
           <input type="hidden" name="nextpage" value="<wiki:PageInfoLink format="url"/>">
           </form>


    </wiki:PageType>

If the current page is a standard WikiPage, displays just a link back to the page. However, if it is an attachment, will insert a possibility to update the attachment.




Go to top  
This page last changed on 07-Jul-2003 01:56:14 UTC by unknown.
Please make one.