General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
TemplateProviderSheet
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Wiki Home
»
XWiki Space
»
Data types
»
Template Provider Class
»
TemplateProviderSheet
Wiki source code of
TemplateProviderSheet
Last modified by
Administrator
on 2011/11/06 20:09
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: {{velocity}} 2: #set($providerObj = $doc.getObject("XWiki.TemplateProviderClass")) 3: #if ($context.action != 'view') 4: ; $msg.get('xe.templateprovider.name') 5: : {{html}}<input type="text" value="$!{doc.getTitle()}" name="title" />{{/html}} 6: #end 7: ; $msg.get('xe.templateprovider.templatename') 8: #if ($context.action == 'inline' || $context.action == 'edit') 9: 10: $msg.get('xe.templateprovider.templatename.info') 11: : $doc.display('name') 12: #else 13: ## get the property and render it in the context of the current document 14: #set($providerName = $providerObj.getProperty('name').value) 15: : {{{$msg.get($providerName)}}} 16: #end 17: ; $msg.get('xe.templateprovider.template') 18: #if ($context.action == 'inline' || $context.action == 'edit') 19: : $doc.display('template') 20: #else 21: #set($templateDocName = $providerObj.getProperty('template').value) 22: : [[$templateDocName>>$templateDocName]] 23: #end 24: ; $msg.get('xe.templateprovider.spaces') 25: #if ($context.action == 'inline' || $context.action == 'edit') 26: 27: $msg.get('xe.templateprovider.spaces.info') 28: #end 29: : $doc.display('spaces') 30: ; $msg.get('xe.templateprovider.action') 31: 32: #if ($context.action == 'inline' || $context.action == 'edit') 33: $msg.get('xe.templateprovider.action.info') 34: #end 35: : $doc.display('action') 36: 37: 38: #if ($context.action == 'view') 39: 40: {{html wiki="true"}} 41: <span class="buttonwrapper"> 42: [[$msg.get('xe.templateprovider.backtoadmin')>>$xwiki.getDocument('XWiki', 'XWikiPreferences').getExternalURL('admin', 'section=Templates')]] 43: </span> 44: {{/html}} 45: #end 46: {{/velocity}}