Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
services:pvw:conf:site [2015/03/17 16:33] eric [Widgets] |
services:pvw:conf:site [2015/03/17 17:22] eric [Custom Pages] |
||
---|---|---|---|
Line 47: | Line 47: | ||
===== Widgets ===== | ===== Widgets ===== | ||
- | // are stored in : **$pvw_conf['widgets']**// | + | // Are stored in : **$pvw_conf['widgets']**// |
- | Wigets are snipsets of code (mainly external) that provides extra features for your website. By default, They are all deactivated. | + | Wigets are snipsets of code (mainly external) that provide extra features for your website. By default, they are all deactivated. |
Here is the list of all available widgets : | Here is the list of all available widgets : | ||
* **share** : Adds a well known "Share" widget printed on the left or right side of the page. | * **share** : Adds a well known "Share" widget printed on the left or right side of the page. | ||
- | * **share2** : Same as the //share// widget but it is located inside of the page, near the title. | + | * **share2** : Same as the //"Share"// widget but it is located inside of the page, near the title. |
- | * **share_news** : Another "share" widget added near each News title within the News view. It allows to share each news individually instead of the whole News listing page. | + | * **share_news** : Is an other "share" widget that allows to share news individually instead of the whole News listing page. It is printed near each News title within the News view. |
- | * **follow** : Add a Follow widget fixed on the top of the page. | + | * **follow** : Adds a "Follow" widget printed on the top of the page. |
- | * **fb_like** : 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 value to override the widgets default value. | + | 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. |
- | 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 : |
<code php> | <code php> | ||
$pvw_conf['widgets']['share']['on'] =1; | $pvw_conf['widgets']['share']['on'] =1; | ||
Line 68: | Line 68: | ||
===== Sections ===== | ===== Sections ===== | ||
- | // are stored in : **$pvw_conf['sections']**// | + | // Are stored in : **$pvw_conf['sections']**// |
- | The site is organized in sections listed in the navigation bar at top (navbar). Possibles sections are: | + | The site is organized by sections listed in the navigation's top bar (navbar). Possible sections are : |
- | * **home** contains the home page only. | + | * **home** Contains the home page only. |
- | * **products** can contains these pages: | + | * **products** Can contain the following pages : |
- | * //software// : a list of all your software | + | * //software// : A list of all your software. |
- | * //bundles// : a list of all your bundles | + | * //bundles// : A list of all your bundles. |
- | * **news** can contains these pages: | + | * **news** Can contain the following pages : |
- | * //blog// : a news blog for posting news, updaes, releases, etc.. | + | * //blog// : A news blog for posting news, updates, releases, etc. |
- | * //videos// : all your latest YouTube Videos | + | * //videos// : All of Your latest YouTube Videos. |
- | * //facebook// : an external link to your Facebook Page | + | * //facebook// : An external link to your Facebook Page. |
- | * //twitter// : an external link to your Twitter Page | + | * //twitter// : An external link to your Twitter Page. |
- | * **support** can contains these pages: | + | * **support** Can contain the following pages : |
- | * //faqs// : an FAQs list page build from your [[faqs|FAQS configuration file]] | + | * //faqs// : An FAQ page build from your [[faqs|FAQS configuration file]] |
- | * //forums// : an external link to your Forums | + | * //forums// : An external link to your Forums. |
- | * //downloads// : a download center with all your latest versions | + | * //downloads// : A download center with all of your latest product versions. |
- | * **about** can contains these pages: | + | * **about** Can contain the following pages : |
- | * //company// : a description of your company | + | * //company// : A description of your company |
- | * //press// : a page intended for media companies, containing your latest presse releases and medias materials to downloads | + | * //press// : A page intended for press medias, containing your latest presse releases and media material ready to be downloaded. |
- | * //contact// : a contact form | + | * //contact// : A contact form. |
- | Each sections can be activated or not and will be sorted in the order defined in the '**sections_on**' array. If this is not set, all sections will be displayed. Example: | + | Each sections can be activated (or not) and will be sorted in the order defined in the '**sections_on**' array. If this is not set, all sections will be displayed by default. Example : |
<code php> | <code php> | ||
$pvw_conf['sections_on']=array('home','products','about'); | $pvw_conf['sections_on']=array('home','products','about'); | ||
</code> | </code> | ||
- | Each section has her own parameters, that as always get default values that you can ovveride using the site configuration (See your Private page to see their current values). For each section you can set: | + | 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 : |
- | * **menu_name** : Name shown in the Navigation Bar | + | * **menu_name** : The name shown in the Navigation Bar. |
- | * **title** : title of the section (visible in the section Index) | + | * **title** : The title of the section (visible in the section Index) |
- | * **html_title** : Browser's window title of the section (visible in the section Index) | + | * **html_title** : The browser's window title of the section (visible in the section Index) |
* **meta_desc** : Meta "description" tag content | * **meta_desc** : Meta "description" tag content | ||
* **meta_keys** : Meta "keywords" tag content | * **meta_keys** : Meta "keywords" tag content | ||
- | Example: | + | Example : |
<code php> | <code php> | ||
$pvw_conf['sections']['about']['menu_name'] ="About MyCompany"; | $pvw_conf['sections']['about']['menu_name'] ="About MyCompany"; | ||
$pvw_conf['sections']['products']['meta_keys']="software,audio,vst,plugins,rtas,music"; | $pvw_conf['sections']['products']['meta_keys']="software,audio,vst,plugins,rtas,music"; | ||
</code> | </code> | ||
- | |||
===== 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 want, by 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 119: | 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 default, or 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** : a short text displayed in the section index, under the title of the page | + | * **intro** : A 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// array, and 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 name. Prefixing 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 names. You may therefore want to Prefix pages using "my company" name or use //custom_// or //our_// as shown in the example above) which would certainly be a good update-safe name to use. |
{{indexmenu_n>10}} | {{indexmenu_n>10}} |