一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
FAQCode
▼
:
Document Index
»
Page:
FAQHomeSheet
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
FAQ Code Space
»
$doc.title
Wiki源代码
$doc.title
在2013-10-09 15:07上被
Administrator
修改
内容
·
评论
(0)
·
附件
(0)
·
记录
·
信息
隐藏行号
1: {{velocity}} 2: #set($faqHome = $doc.getObject("FAQCode.FAQHomeClass")) 3: #if($faqHome) 4: $doc.use("FAQCode.FAQHomeClass") 5: $xwiki.jsx.use('FAQCode.SkinExtension') 6: $xwiki.ssx.use('FAQCode.SkinExtension') 7: ## The space where to add and search for FAQ Entries 8: #set ($faqSpace = $doc.space) 9: ## If this page is called with createFAQ=true then create a new page using the FAQTemplate template 10: #if ($request.createFAQ == 'true') 11: #set ($newFAQReference = $services.model.createDocumentReference('', "${faqSpace}", "$!{request.question}")) 12: t $response.sendRedirect($xwiki.getURL($newFAQReference, 'inline', "$!{request.queryString}&title=${escapetool.url($request.question)}")) 13: #end 14: #set ($description = $doc.getValue("description")) 15: #if ("$!description" != "") 16: {{box cssClass="faqAbout"}} 17: $doc.display("description") 18: {{/box}} 19: #end 20: 21: (% class="centered" %) ((( 22: 23: (% class="faq-link search-faq" %)((( 24: $services.localization.render('platform.faq.search.title') 25: ((( 26: {{html}} 27: <form action="$xwiki.getURL('FAQCode.FAQSearch')"> 28: <div> 29: <input type="hidden" name="space" value="${faqSpace}" /> 30: <input type="text" name="text" value="$services.localization.render('platform.faq.search.questionHint')" size="25" class="withTip" /> 31: <span class="buttonwrapper"> 32: <input class="button" type="submit" value="$services.localization.render('platform.faq.search.submit')" /> 33: </span> 34: </div> 35: </form> 36: {{/html}} 37: ))) 38: ))) 39: 40: (% class="faq-link add-faq" %)((( 41: $services.localization.render('platform.faq.create.title') 42: 43: ((( 44: {{html}} 45: #if ($isGuest) 46: #set($login = ${escapetool.xml($doc.getURL("login", "xredirect=$doc.externalURL"))}) 47: #set($register = ${escapetool.xml($xwiki.getURL($services.model.resolveDocument('', 'default'), "register", "xredirect=$doc.externalURL"))}) 48: $services.localization.render('platform.faq.need', ["<a href=$login>","</a>","<a href=$register>","</a>"]) 49: #else 50: <form action="" id="newfaq"> 51: <div> 52: <input type="hidden" name="parent" value="${faqSpace}.WebHome" /> 53: <input type="hidden" name="template" value="FAQCode.FAQTemplate" /> 54: <input type="hidden" name="createFAQ" value="true" /> 55: <input class="withTip" type="text" name="question" value="$services.localization.render('platform.faq.create.questionHint')" size="25"/> 56: <span class="buttonwrapper"> 57: <input class="button" type="submit" value="$services.localization.render('platform.faq.create.submit')" /> 58: </span> 59: </div> 60: </form> 61: #end 62: {{/html}} 63: ))) 64: ))) 65: 66: ))) 67: 68: (% class="clearfloats" %)((()))(%%) 69: 70: {{faq filter="space=${faqSpace}"/}} 71: #else 72: This class sheet must be applied on a document containing an FAQCode.FAQHomeClass object 73: #end 74: {{/velocity}}
快速链接
首页
新闻动态
FAQ