Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
services:pvw:conf:boxes [2015/03/16 12:41] r2d2 [Boxes Block] |
services:pvw:conf:boxes [2015/03/19 11:33] (current) r2d2 [Activating Boxes] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Boxes Block ====== | ====== Boxes Block ====== | ||
- | The **boxes** block is a special [[blocks|preset block]] that allows you to fastly create multiples colums. Depending on the number of boxes you have defined, the site will display Bootstrap colums, each containing a //box//, meaning: | + | The **boxes** block is a special [[blocks|preset block]] that allows you to quickly create multiple colums. Depending on the number of boxes you have defined, the site will display Bootstrap columns, each one containing a //box// with : |
* An (optionnal) title | * An (optionnal) title | ||
- | * A piece of text that can contains any HTML tags. | + | * A piece of text that can contain any HTML tags. |
- | Columns number can be only 2,3,4,6 or 12. | + | Column numbers can only be : 2,3,4,6 or 12. |
===== Activating Boxes ===== | ===== Activating Boxes ===== | ||
- | First you have to activate the [[blocks|'boxes' block]], where you want it to be displayed, ie: | + | You'll first need to activate the [[blocks|'boxes' block]], where you want them to be displayed. Example : |
<code php> | <code php> | ||
$pvw_conf['blocks_on']['home']=array('jumbo','boxes'); | $pvw_conf['blocks_on']['home']=array('jumbo','boxes'); | ||
</code> | </code> | ||
- | Next you have to define the list of boxes you want to display for each block type, using the following syntax : | + | You'll then need to define the list of boxes you want to display for each block type, using the following syntax : |
<code php> | <code php> | ||
$pvw_conf['boxes_on']['TYPE']=array('BOXNAME','BOXNAME1','BOXNAME2'); | $pvw_conf['boxes_on']['TYPE']=array('BOXNAME','BOXNAME1','BOXNAME2'); | ||
</code> | </code> | ||
Where : | Where : | ||
- | * **TYPE** is the block type where they appears : either **home** or **foot** | + | * **TYPE** Is the location where blocks appear : either **home** or **foot** |
- | * **BOXNAME**, (BOXNAME1,BOXNAME2) are the name of your boxes. Beware that this name is used in the CSS ID name and thus should only include letters, digits underscore or hyphen. (Don't put spaces in the name) | + | * **BOXNAME** (BOXNAME1,BOXNAME2) are the name of your boxes. Note that this name is used in the CSS ID and therefore should only include letters, digits underscores or hyphens. (Never use "spaces" when naming a box) |
Example : | Example : | ||
Line 28: | Line 28: | ||
===== Defining Boxes ===== | ===== Defining Boxes ===== | ||
- | To define a box, you should use the following syntax | + | To correctly define a box, you should use the following syntax |
<code php> | <code php> | ||
$pvw_conf['boxes']['MY_NAME']['title'] ="MY_TITLE"; | $pvw_conf['boxes']['MY_NAME']['title'] ="MY_TITLE"; | ||
Line 35: | Line 35: | ||
Where : | Where : | ||
- | * **MY_NAME** is the unique name of your box, as defined in the //boxes_on// array. | + | * **MY_NAME** is the unique name of a box, as defined in the //boxes_on// array. |
- | * **MY_TITLE** (optionnal) is the title shown in the box top | + | * **MY_TITLE** (optionnal) is the title shown on the top of the box. |
- | * **MY_CONTENT** (required) is the content of the box, either as text or HTML | + | * **MY_CONTENT** (required) is the content of the box that can be either plain text or HTML. |
- | Example: | + | Example : |
<code php> | <code php> | ||
$pvw_conf['boxes']['box_home1']['title'] ="Version 5 released"; | $pvw_conf['boxes']['box_home1']['title'] ="Version 5 released"; | ||
- | $pvw_conf['boxes']['box_home1']['content']="We have just released a new version of Analoger, that you will find in our Donwload page "; | + | $pvw_conf['boxes']['box_home1']['content']="We have released a new version of "Analoger" that you will find in our Download page "; |
$pvw_conf['boxes']['box_home2']['title'] ="Special Promo"; | $pvw_conf['boxes']['box_home2']['title'] ="Special Promo"; | ||
$pvw_conf['boxes']['box_home2']['content']=" | $pvw_conf['boxes']['box_home2']['content']=" | ||
- | <p>We are currently a great promo on Analoger for only $1</p> | + | <p>We are currently running a great promo on "Analoger" sold at only $49</p> |
<p><a href='http://www.dontcrack.com'>Check out the details here</a></p>"; | <p><a href='http://www.dontcrack.com'>Check out the details here</a></p>"; | ||
Line 55: | Line 55: | ||
{{indexmenu_n>30}} | {{indexmenu_n>30}} | ||
- | |||