General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
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
Main wiki
»
XWiki Space
»
Data types
»
Template Provider Class
»
TemplateProviderSheet
Wiki source code of
TemplateProviderSheet
Last modified by
Administrator
on 2012/03/21 17:40
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: {{velocity}} 2: $xwiki.jsx.use('XWiki.TemplateProviderSheet')## 3: #set($providerObj = $doc.getObject("XWiki.TemplateProviderClass")) 4: #if ($context.action != 'view') 5: ; $msg.get('xe.templateprovider.name') 6: : {{html}}<input type="text" value="$!{doc.getTitle()}" name="title" />{{/html}} 7: #end 8: ; $msg.get('xe.templateprovider.templatename') 9: #if ($context.action == 'inline' || $context.action == 'edit') 10: 11: $msg.get('xe.templateprovider.templatename.info') 12: : $doc.display('name') 13: #else 14: ## get the property and render it in the context of the current document 15: #set($providerName = $providerObj.getProperty('name').value) 16: : {{{$msg.get($providerName)}}} 17: #end 18: ; $msg.get('xe.templateprovider.template') 19: #if ($context.action == 'inline' || $context.action == 'edit') 20: : $doc.display('template') 21: #else 22: #set($templateDocName = $providerObj.getProperty('template').value) 23: : [[$templateDocName>>$templateDocName]] 24: #end 25: ; $msg.get('xe.templateprovider.templatetype') 26: #if ($context.action == 'inline' || $context.action == 'edit') 27: 28: $msg.get('xe.templateprovider.templatetype.info') 29: #end 30: : $doc.display('type') 31: (% id="enabled-spaces" %)((( 32: ; $msg.get('xe.templateprovider.spaces') 33: #if ($context.action == 'inline' || $context.action == 'edit') 34: 35: $msg.get('xe.templateprovider.spaces.info') 36: #end 37: : $doc.display('spaces') 38: ))) 39: ; $msg.get('xe.templateprovider.action') 40: 41: #if ($context.action == 'inline' || $context.action == 'edit') 42: $msg.get('xe.templateprovider.action.info') 43: #end 44: : $doc.display('action') 45: 46: 47: #if ($context.action == 'view') 48: 49: {{html wiki="true"}} 50: <span class="buttonwrapper"> 51: [[$msg.get('xe.templateprovider.backtoadmin')>>$xwiki.getDocument('XWiki', 'XWikiPreferences').getExternalURL('admin', 'section=Templates')]] 52: </span> 53: {{/html}} 54: #end 55: {{/velocity}}