FAQ模块完全可以自己搭建出来

论坛: 

不知道为什么会专门出一个faq的模块,测试了几次,感觉完全自己可以用现有的模型搭建出来。

自定义字段为:问题,固有的body则为解答描述。
显示部门用views调用出来,在页头部分调用一个views查询的全部标题,完美解决。

Installation

  • Create a new content type, or reuse existing one
  • Add a new number/integer field for this content type (require Number module, shipped with CCK): go to admin/content/node-type/NODETYPE/fields (D6) or admin/structure/types/manage/NODETYPE/fields (D7)
  • Select the format "Selected answer" for this field in the "Display fields" section: admin/content/node-type/NODETYPE/display (D6) or admin/structure/types/manage/NODETYPE/display (D7).
  • Go to the Q/A settings page (admin/settings/question_answer in D6 and admin/config/question_answer in D7) and select the content type/field name above.
  • That's all!

Question expiration

You can set the expiration time for each question. After this time, the reply with the most votes will be automatically selected as the answer.

  • Go to the Q/A content type, create a new field "duration"
    • Type: Integer (D7: List (Integer))
    • Widget: Select list
    • In the configure page, enter prefined time in second, for example (unlimited, 1 day, 7 days and 30 days):
      0|No expiration
      86400|1 day
      604800|1 week
      2592000|1 month
    • Select the format "Remaining time" for this field in the "Display fields" section: admin/content/node-type/NODETYPE/display (D6).
  • Go to the Q/A setting page, select this field.
  • Install VotingAPI module and another module, for example, vote_up_down (don't forget to enable "vud on comments").
  • Go to permissions page, allow anonymous to vote on comments.
dashan 答复于