一般动作
登录
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) · 记录 · 信息
显示行号 {{velocity}} #set($faqHome = $doc.getObject("FAQCode.FAQHomeClass")) #if($faqHome) $doc.use("FAQCode.FAQHomeClass") $xwiki.jsx.use('FAQCode.SkinExtension') $xwiki.ssx.use('FAQCode.SkinExtension') ## The space where to add and search for FAQ Entries #set ($faqSpace = $doc.space) ## If this page is called with createFAQ=true then create a new page using the FAQTemplate template #if ($request.createFAQ == 'true') #set ($newFAQReference = $services.model.createDocumentReference('', "${faqSpace}", "$!{request.question}")) t $response.sendRedirect($xwiki.getURL($newFAQReference, 'inline', "$!{request.queryString}&title=${escapetool.url($request.question)}")) #end #set ($description = $doc.getValue("description")) #if ("$!description" != "") {{box cssClass="faqAbout"}} $doc.display("description") {{/box}} #end (% class="centered" %) ((( (% class="faq-link search-faq" %)((( $services.localization.render('platform.faq.search.title') ((( {{html}} <form action="$xwiki.getURL('FAQCode.FAQSearch')"> <div> <input type="hidden" name="space" value="${faqSpace}" /> <input type="text" name="text" value="$services.localization.render('platform.faq.search.questionHint')" size="25" class="withTip" /> <span class="buttonwrapper"> <input class="button" type="submit" value="$services.localization.render('platform.faq.search.submit')" /> </span> </div> </form> {{/html}} ))) ))) (% class="faq-link add-faq" %)((( $services.localization.render('platform.faq.create.title') ((( {{html}} #if ($isGuest) #set($login = ${escapetool.xml($doc.getURL("login", "xredirect=$doc.externalURL"))}) #set($register = ${escapetool.xml($xwiki.getURL($services.model.resolveDocument('', 'default'), "register", "xredirect=$doc.externalURL"))}) $services.localization.render('platform.faq.need', ["<a href=$login>","</a>","<a href=$register>","</a>"]) #else <form action="" id="newfaq"> <div> <input type="hidden" name="parent" value="${faqSpace}.WebHome" /> <input type="hidden" name="template" value="FAQCode.FAQTemplate" /> <input type="hidden" name="createFAQ" value="true" /> <input class="withTip" type="text" name="question" value="$services.localization.render('platform.faq.create.questionHint')" size="25"/> <span class="buttonwrapper"> <input class="button" type="submit" value="$services.localization.render('platform.faq.create.submit')" /> </span> </div> </form> #end {{/html}} ))) ))) ))) (% class="clearfloats" %)((()))(%%) {{faq filter="space=${faqSpace}"/}} #else This class sheet must be applied on a document containing an FAQCode.FAQHomeClass object #end {{/velocity}}

# 快速链接

- 首页
- 新闻动态
- FAQ

Copyright © 2013 北京博瑞开源软件有限公司
京ICP备12048974号