Allgemeine Aktionen:
Anmelden
Registrieren
Start ▼: Wiki Verzeichnis
»
Bereich: ContactCode
»
Seite: ContactConfigurationSheet
en
Aktionen:
Exportieren ▼: Als PDF exportieren Als RTF exportieren Als HTML exportieren
Weitere Aktionen ▼: Druckvorschau Zeige den Quellcode
Willkommen bei bytebang » XWiki Bereich » Data types » ContactConfiguration Class » ContactConfiguration Sheet

# Wiki-Quellcode von ContactConfiguration Sheet

Zuletzt geändert von Guenther Hutter am 2016/02/28 16:58
Zeilennummern verstecken 1: {{velocity}} 2: $xwiki.ssx.use('ContactCode.ContactConfigurationSheet') 3: #set($obj = $doc.getObject("ContactCode.ContactConfigurationClass")) 4: #set($contact_companyName = "$!obj.companyName") 5: #set($contact_presentation = "$!obj.getProperty('presentation').value") 6: #set($contact_recipient = "$!obj.getProperty('recipient').value") 7: #set($contact_adresse = "$!obj.getProperty('adresse').value") 8: #set($contact_pc = "$!obj.getProperty('pc').value") 9: #set($contact_city = "$!obj.getProperty('city').value") 10: #set($contact_phone = "$!obj.getProperty('phone').value") 11: #set($contact_DUB = "$!obj.getProperty('displayUpdateButton').value") 12: #set($contact_DP = "$!obj.getProperty('displayPresentation').value") 13: #set($contact_DA = "$!obj.getProperty('displayAdresse').value") 14: #set($contact_DF = "$!obj.getProperty('displayForm').value") 15: 16: #if($context.action=="inline" || $context.action=="edit") 17: (% class="contactEditText" %)((( 18: #set($class = $doc.getObject('ContactCode.ContactConfigurationClass').xWikiClass) 19: #foreach($prop in $class.properties) 20: ; $prop.prettyName 21: : $doc.display($prop.getName()) 22: #end 23: ))) 24: #else 25: {{html wiki="true" clean="false"}} 26: (% class="contactVeiwMode" %)((( 27: 28: #if($contact_DUB == 1) 29: #if($hasAdmin) 30: (% class="contactSubMenu" %)((( [[$msg.get("xwiki.contac.updatepresentationtext")>>path:$doc.getURL('inline')]] ))) 31: (% style='clear:both' %)((())) 32: #end 33: #end 34: 35: ## Display the presentation text 36: #if($contact_DP == 1) 37: (% class="contactVeiwText" %)((( 38: #set($result = $contact_presentation) 39: $doc.getRenderedContent($result, $doc.syntax.toIdString()) 40: ))) 41: #end 42: 43: ## Display the address and the map 44: #if($contact_DA == 1) 45: ==$msg.get('xwiki.contac.generalinformation')== 46: (% class="contactViewLocation" %)((( 47: {{include document='ContactCode.AdressDisplayer'/}} 48: ))) 49: #end 50: 51: ## Display the contact form 52: #if($contact_DF == 1) 53: (% class="contactVeiwForm" %)((( 54: == $msg.get('xwiki.contac.senmessage') == 55: {{include document='ContactCode.ContactForm'/}} 56: ))) 57: #end 58: 59: ))) 60: {{html}} 61: #end 62: {{/velocity}}

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