Differences

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

Link to this comparison view

Next revision
Previous revision
documentation:white-pages:latest:config_general [2016/11/24 12:05]
coudot created
documentation:white-pages:latest:config_general [2019/07/16 19:35] (current)
Line 1: Line 1:
 ====== General parameters ====== ====== General parameters ======
  
-<​note>​Configuration file''​white-pages/​conf/​config.inc.php''​</note>+===== Configuration ​files ===== 
 + 
 +To configure White Pages, you need to create a //local// configuration ​file named ''​config.inc.local.php''​ in ''​white-pages/​conf''​. For example : 
 +<file php><?​php 
 +/Override ​config.inc.php ​parameters below 
 + 
 +?></file> 
 + 
 +White Pages default configuration file is ''​white-pages/​conf/​config.inc.php''​. It includes ''​config.inc.local.php''​. Consequently,​ you can override all parameters in ''​config.inc.local.php''​. This prevents you to be disturbed by an upgrade.
  
 ===== Language ===== ===== Language =====
Line 18: Line 26:
 </​file>​ </​file>​
  
 +<​note>​Messages are translated in ''​white-pages/​lang/​LANG.inc.php''​ files, but you can define new messages or override some messages by creating a ''​white-pages/​conf/​LANG.inc.php''​ file.</​note>​
 ==== Date ==== ==== Date ====
  
Line 41: Line 50:
 </​file>​ </​file>​
  
-==== Default photo ==== 
- 
-Configure which file is used as default photo: 
-<file php> 
-$default_photo = "​images/​240px-PICA.jpg";​ 
-</​file>​ 
  
 ==== Hover effect ==== ==== Hover effect ====
Line 60: Line 63:
 <file php> <file php>
 $custom_css = "​css/​custom.css";​ $custom_css = "​css/​custom.css";​
 +</​file>​
 +
 +==== Footer ====
 +
 +You can hide the footer bar:
 +<file php>
 +$display_footer = false;
 +</​file>​
 +
 +===== Default page =====
 +
 +By default, the welcome page is displayed. To change this:
 +<file php>
 +$default_page = "​gallery";​
 </​file>​ </​file>​