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
Zeilennummern verstecken 1: {{velocity}} 2: #if ($type == 'edit') 3: #set ($className = $object.getxWikiClass().name) 4: #if ($doc.fullName == $className) 5: ## We are editing the class so the content must be read from / written to the template document. 6: #set ($name = 'templateContent') 7: #set ($editedDocument = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template")) 8: ## Don't load the WYSIWYG editor when editing the class, because it's too heavy. 9: #set ($useWysiwygEditor = false) 10: #else 11: ## We are editing an application entry so the content must be read from / written to the current document. 12: #set ($name = 'content') 13: #set ($editedDocument = $tdoc) 14: ## Use the preferred content editor. 15: #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') 16: #end 17: {{html clean="false"}} 18: #if (!$useWysiwygEditor) 19: <div id="xwikieditcontentinner"> 20: ## 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. 21: #set ($toolBar = "#template('simpleedittoolbar.vm')") 22: $!toolBar.replace('{{', '&#123;&#123;') 23: #end 24: ## The "content" id is expected by some JavaScript and CSS code. 25: <textarea id="content" cols="80" rows="25" name="$name">$escapetool.xml($editedDocument.content)</textarea> 26: #if ($useWysiwygEditor) 27: #wysiwyg_editProperty($editedDocument 'content' true) 28: #else 29: </div> 30: #end 31: {{/html}} 32: #elseif ("$!type" != '') 33: ## Include the content of the current document. 34: {{include reference=""/}} 35: #else 36: The display mode is not specified! 37: #end 38: {{/velocity}}

(c) 2025, by bytebang e.U. - Impressum - Datenschutz / Nutzungsbedingungen
-