General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
NameManager
▼
:
Document Index
»
Page:
NameClassSheet
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Name Manager
»
NameClassSheet
Wiki source code of
NameClassSheet
Last modified by AdamHattrell on 2008/05/12 20:42
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
1 $doc.name 1.1 Names stored on this page #foreach ($nameObj in $doc.getObjects("NameManager.NameClass")) $nameObj.get("name") #end 1.1 Add new names Insert a list of names into the form below to add them to the page. <FORM method="post"> <TEXTAREA NAME="nameList" COLS=40 ROWS=10></TEXTAREA> <INPUT type="submit" name="Go" value="Go" /> </FORM> #if ($request.getParameter("Go")) #set ($nameList = $request.getParameter("nameList")) #foreach ($newName in $nameList.split(" ")) #set ($newObj = $doc.newObject("NameManager.NameClass")) $newObj.set("name", $newName) #end $doc.save() $response.sendRedirect($doc.getURL()) #end