Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
services:pvw:conf:faqs [2015/03/16 10:45]
r2d2 created
services:pvw:conf:faqs [2015/03/16 12:45]
r2d2 [Sections]
Line 1: Line 1:
-====== FAQs Configuration ​======+====== FAQs Page ======
  
 The **conf/​faqs.php** contains all your FAQs texts. ​ The **conf/​faqs.php** contains all your FAQs texts. ​
Line 8: Line 8:
 Each of your FAQs is defined like that : Each of your FAQs is defined like that :
  
-$faqs['​**SECTION**'​]['​**INDEX**'​]['​q'​] ="​**(question) TEXT**";\\ +<code php> 
-$faqs['​**SECTION**'​]['​**INDEX**'​]['​a'​] ="​**(answer) TEXT**";\\ +$faqs['​SECTION'​]['​INDEX'​]['​q'​] ="​(question) TEXT";​ 
 +$faqs['​SECTION'​]['​INDEX'​]['​a'​] ="​(answer) TEXT";​ 
 +</​code>​
  
 Where: Where:
Line 35: Line 36:
 ===== Sections ===== ===== Sections =====
 Sections are completely optionnals, but are usefull to separate your FAQs in differents sections, especially if you have many FAQS. Sections are completely optionnals, but are usefull to separate your FAQs in differents sections, especially if you have many FAQS.
 +//If you dont want to use sections, simply put all your faqs in the same section, ie '​general'​ and no sections will be displayed.//​
  
-Each section index used in FAQs definitions must be names using the following syntax:+Each section index used in FAQs definitions must be named using the following syntax: 
 +<code php> 
 +$faqs_sections_names['​SECTION'​] ="​NAME";​ 
 +</​code>​
  
-$faqs_sections_names['​**SECTION**'​] ="​**NAME**";​\\ +Where :
- +
-Where:+
     * **SECTION** is the section inde used in FAQs definitions     * **SECTION** is the section inde used in FAQs definitions
-    * **INDEX** is an unique index for this section question/​answer pair (can be a number or a string) 
     * **NAME** is the title that will be used for each Section     * **NAME** is the title that will be used for each Section
  
Line 51: Line 53:
 </​code>​ </​code>​
  
-//BTW, If you dont want to use sections, simply put all your faqs in the same section, ie '​general'​ and no sections will be displayed.//​+