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
Show line numbers
{{velocity}} $xwiki.jsx.use('XWiki.TemplateProviderSheet')## #set($providerObj = $doc.getObject("XWiki.TemplateProviderClass")) #if ($context.action != 'view') ; $msg.get('xe.templateprovider.name') : {{html}}<input type="text" value="$!{doc.getTitle()}" name="title" />{{/html}} #end ; $msg.get('xe.templateprovider.templatename') #if ($context.action == 'inline' || $context.action == 'edit') $msg.get('xe.templateprovider.templatename.info') : $doc.display('name') #else ## get the property and render it in the context of the current document #set($providerName = $providerObj.getProperty('name').value) : {{{$msg.get($providerName)}}} #end ; $msg.get('xe.templateprovider.template') #if ($context.action == 'inline' || $context.action == 'edit') : $doc.display('template') #else #set($templateDocName = $providerObj.getProperty('template').value) : [[$templateDocName>>$templateDocName]] #end ; $msg.get('xe.templateprovider.templatetype') #if ($context.action == 'inline' || $context.action == 'edit') $msg.get('xe.templateprovider.templatetype.info') #end : $doc.display('type') (% id="enabled-spaces" %)((( ; $msg.get('xe.templateprovider.spaces') #if ($context.action == 'inline' || $context.action == 'edit') $msg.get('xe.templateprovider.spaces.info') #end : $doc.display('spaces') ))) ; $msg.get('xe.templateprovider.action') #if ($context.action == 'inline' || $context.action == 'edit') $msg.get('xe.templateprovider.action.info') #end : $doc.display('action') #if ($context.action == 'view') {{html wiki="true"}} <span class="buttonwrapper"> [[$msg.get('xe.templateprovider.backtoadmin')>>$xwiki.getDocument('XWiki', 'XWikiPreferences').getExternalURL('admin', 'section=Templates')]] </span> {{/html}} #end {{/velocity}}