[IMP] adding FAQ page
authorFabien Pinckaers <fp@tinyerp.com>
Mon, 3 Mar 2014 19:36:54 +0000 (20:36 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Mon, 3 Mar 2014 19:36:54 +0000 (20:36 +0100)
bzr revid: fp@tinyerp.com-20140303193654-rkmar2mc05uluhg8

addons/website_forum/controllers/main.py
addons/website_forum/views/website_forum.xml

index 7b847a6..b15d0f1 100644 (file)
@@ -74,6 +74,11 @@ class website_forum(http.Controller):
 
         return request.website.render("website_forum.index", values)
 
+    @http.route(['/forum/<model("website.forum"):forum>/faq'], type='http', auth="public", website=True, multilang=True)
+    def faq(self, forum, **post):
+        values = { 'searches': {}, 'forum':forum }
+        return request.website.render("website_forum.faq", values)
+
     @http.route(['/forum/ask'], type='http', auth="public", website=True, multilang=True)
     def question_ask(self, **post):
         values = {
index 7f7fc89..6dfc4d8 100644 (file)
         </template>
 
         <template id="index">
+            <t t-call="website_forum.faq">
+                <div t-field="forum.faq"/>
+            </t>
+        </template>
+
+        <template id="index">
             <t t-call="website_forum.header">
                 <h1 class="page-header mt0">
                     <t t-esc="total_questions"/>