Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
services:pvw:conf:site [2015/03/17 17:01]
eric [Sections]
services:pvw:conf:site [2015/03/19 11:23] (current)
r2d2
Line 40: Line 40:
 // are stored in : **$pvw_conf['​emails'​]**//​ // are stored in : **$pvw_conf['​emails'​]**//​
  
-If a visitor uses the contact form to reach a certain department on your website such as "​customer support"​ or "​general inquiries",​ his message will be sent to the email addresses set as :+If a visitor uses the contact form to reach a certain department on your website such as "​customer support"​ or "​general inquiries",​ his message will be sent to the corresponding ​email addresses set as :
 <code php> <code php>
 $pvw_conf['​emails'​]['​general'​] ="​me@domain.com";​ $pvw_conf['​emails'​]['​general'​] ="​me@domain.com";​
Line 58: Line 58:
   * **fb_like** : Is a Facebook "​LikeBox"​ that can be inserted within //Boxes//.   * **fb_like** : Is a Facebook "​LikeBox"​ that can be inserted within //Boxes//.
  
-Set each widget's parameter to 1 to set it's status value to '​**on**'​. Set your own parameter values to override the widgets default values.+To activate ​each widgetset its '​**on**' ​parameter value to 1. Set your own parameter values to override the widgets default values.
  
 In example : To active the share widget with 10 icons (instead of the default value of 5), simply add : In example : To active the share widget with 10 icons (instead of the default value of 5), simply add :
Line 94: Line 94:
 </​code>​ </​code>​
  
-Each section has it'​s ​own parameters that, as always, has default values that can be overridden using the site configuration (See your Private page to see their current values). For each section you can set :+Each section has its own parameters that, as always, has default values that can be overridden using the site configuration (See your Private page to see their current values). For each section you can set :
   * **menu_name** ​ : The name shown in the Navigation Bar.   * **menu_name** ​ : The name shown in the Navigation Bar.
   * **title** : The title of the section (visible in the section Index)   * **title** : The title of the section (visible in the section Index)
Line 109: Line 109:
  
 ===== Pages ===== ===== Pages =====
-// are stored in : **$pvw_conf['​pages'​]**//​+// Are stored in : **$pvw_conf['​pages'​]**//​
  
-Each sections ​can contain one or more pages, defined and sorted according to the '​**pages_on**'​ array indexed by sections. By default, all factory pages are shown, ​bu you can limit it to the page you wantby setting the //​pages_on// ​of each section.+Each section ​can contain one or more pages, defined and sorted according to the '​**pages_on**'​ array indexed by sections. By default, all factory pages are shown, ​but you can limit it to the page you want by setting the //​pages_on// ​for each section.
  
 Example : Example :
Line 118: Line 118:
 $pvw_conf['​pages_on'​]['​about'​]=array('​company','​contact'​);​ $pvw_conf['​pages_on'​]['​about'​]=array('​company','​contact'​);​
 </​code>​ </​code>​
-//Notice ​that if a section contains only ONE page, the section will be replaced by this page//+//Note that if a section contains only ONE page, the section will be replaced by that page//
  
-Each pages has the following parameters (set by defaults, overriden by you) : +Each page has the following parameters (set by defaultor overriden by you) : 
-  * **title** : Title of the page +  * **title** : The title of the page. 
-  * **html_title** : Browser's window title +  * **html_title** : The browser's window title. 
-  * **intro** : short text displayed ​in the section ​index, under the title of the page +  * **intro** : short text displayed ​within ​the index section, under the title of the page. 
-  * **menu_name** : the name of the page displayed in the Navbar menu +  * **menu_name** : The name of the page displayed in the Navbar menu. 
-  * **fa_icon** : another ​icon to diplay in the various menus +  * **fa_icon** : Another ​icon to be displayed within ​various menus. 
-  * **meta_desc** : Page meta "​description"​ tag content +  * **meta_desc** : Page meta "​description"​ tag content. 
-  * **meta_keys** : Page meta "​keywords"​ tag content+  * **meta_keys** : Page meta "​keywords"​ tag content.
  
 Example: Example:
 <code php> <code php>
 $pvw_conf['​pages'​]['​about'​]['​contact'​]['​title'​] ​      ​="​Contacting MyCompany";​ $pvw_conf['​pages'​]['​about'​]['​contact'​]['​title'​] ​      ​="​Contacting MyCompany";​
-$pvw_conf['​pages'​]['​products'​]['​bundles'​]['​meta_desc'​]="​All bundles made by Mycompany";+$pvw_conf['​pages'​]['​products'​]['​bundles'​]['​meta_desc'​]="​All bundles made by MyCompany";
 </​code>​ </​code>​
  
  
 ===== Custom Pages ===== ===== Custom Pages =====
-If you need to create ​others ​pages, you can define ​them with any HTML content ​you need. You just have to create the page definition in the //pages// arrayand enable ​it in the //​pages_on//​ array of the corresponding section.+If you need to create ​"​custom" ​pages, you may define ​these using any HTML content ​as needed. You simply need to create the page definition in the //pages// array and enable ​them from the //​pages_on//​ array in the corresponding section.
  
-Example:+Example :
 <code php> <code php>
 $pvw_conf['​pages'​]['​about'​]['​our_jobs'​]['​title'​] ​      ​="​Jobs at MyCompany";​ $pvw_conf['​pages'​]['​about'​]['​our_jobs'​]['​title'​] ​      ​="​Jobs at MyCompany";​
-$pvw_conf['​pages'​]['​about'​]['​our_jobs'​]['​content'​] ​    ​="​We ​are hiring a cool developper";​+$pvw_conf['​pages'​]['​about'​]['​our_jobs'​]['​content'​] ​    ​="​We'​re ​hiring a cool developper";​
  
 $pvw_conf['​pages_on'​]['​about'​] ​    ​=array('​company','​our_jobs','​contact'​);​ $pvw_conf['​pages_on'​]['​about'​] ​    ​=array('​company','​our_jobs','​contact'​);​
 </​code>​ </​code>​
  
-In this example we created ​the //​our_jobs//​ page, linked from the about section at the url /​about/​our_jobs.+In this example we created ​an //​our_jobs//​ page, linked from the about section at the url /​about/​our_jobs.
  
-Note: the page index name (//​our_jobs//​ in the example) must NOT be one of the factory ​page, else it would be ignored. ​Therefore ​as we will regulary add new factory pages with some unique index name, we advice you to choose ​an index name that will never match one of the future factory page namePrefixing it my your company ​name or with //​custom_// ​(or //​our_// ​like in the example) would certainly be an update-proof name.+Note : The page index name (//​our_jobs//​ in this example) must NOT be one of the factory ​default pages as it would be ignored. ​Moreover, ​as we will regulary add new factory pages with unique index name, we advice ​that you choose index names that will never match future factory page namesYou may therefore want to Prefix pages using "​mycompany" ​name or use //custom_// or //​our_// ​as shown in the example ​abovewhich would certainly be a good update-safe name to use.
  
  
  
 {{indexmenu_n>​10}} {{indexmenu_n>​10}}