Allgemeine Aktionen:
Anmelden
Registrieren
Start
▼
:
Wiki Verzeichnis
»
Bereich:
AppWithinMinutes
»
Seite:
Content
default
Aktionen:
Exportieren
▼
:
Als PDF exportieren
Als RTF exportieren
Als HTML exportieren
Weitere Aktionen
▼
:
Druckvorschau
Zeige den Quellcode
Willkommen bei bytebang
»
Anwendung erstellen in wenigen Minuten
»
FormField Class
»
Inhalt
Wiki-Quellcode von
Inhalt
Zuletzt geƤndert von
Administrator
am 2014/06/29 19:29
Inhalt
Zeilennummern anzeigen
{{velocity}} #if ($type == 'edit') #set ($className = $object.getxWikiClass().name) #if ($doc.fullName == $className) ## We are editing the class so the content must be read from / written to the template document. #set ($name = 'templateContent') #set ($editedDocument = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template")) ## Don't load the WYSIWYG editor when editing the class, because it's too heavy. #set ($useWysiwygEditor = false) #else ## We are editing an application entry so the content must be read from / written to the current document. #set ($name = 'content') #set ($editedDocument = $tdoc) ## Use the preferred content editor. #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') #end {{html clean="false"}} #if (!$useWysiwygEditor) <div id="xwikieditcontentinner"> ## The tool bar may have an entry to insert an HTML macro. Make sure it doesn't break the HTML macro we are currently in. #set ($toolBar = "#template('simpleedittoolbar.vm')") $!toolBar.replace('{{', '{{') #end ## The "content" id is expected by some JavaScript and CSS code. <textarea id="content" cols="80" rows="25" name="$name">$escapetool.xml($editedDocument.content)</textarea> #if ($useWysiwygEditor) #wysiwyg_editProperty($editedDocument 'content' true) #else </div> #end {{/html}} #elseif ("$!type" != '') ## Include the content of the current document. {{include reference=""/}} #else The display mode is not specified! #end {{/velocity}}