General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
Exalted
▼
:
Document Index
»
Page:
CharmList
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Selene's Flurry
»
CharmList
Wiki source code of
CharmList
Last modified by
Adam Hattrell
on 2011/10/23 15:03
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: = Exalted Charms = 2: 3: This will be a list of all the charms relevant to our characters. I may well make this private at some point. I will definitely make it dynamic at some point! 4: 5: {{velocity}} 6: 7: #set ($sql = ",BaseObject as obj where obj.name = doc.fullName and obj.className='Exalted.Charms' and obj.name<>'Exalted.CharmSheetTemplate'") 8: 9: #set ($results = $xwiki.searchDocuments($sql)) 10: 11: #foreach ($item in $results) 12: #set ($charm = $xwiki.getDocument(${item})) 13: * [[$charm.getTitle()>>$item]] added by $xwiki.getLocalUserName($char.creator) 14: #end 15: 16: {{/velocity}} 17: 18: == Add a new Charm == 19: 20: {{html}} 21: <FORM> 22: Enter the short version of the charm name: <input type="text" name="charm" value="short name"/> 23: <input type="submit" name="add" value="add" 24: {{/html}} 25: 26: {{velocity}} 27: ## First deal with any creates 28: #if ($request.getParameter("add")) 29: #set ($name= $request.getParameter("charm")) 30: #set ($params = "template=Exalted.CharmSheetTemplate&sheet=1&parent=Exalted.CharmList") 31: #set ($redirect = $xwiki.getURL("Charm.${name}", "inline", $params)) 32: $response.sendRedirect($redirect) 33: #end 34: {{/velocity}}