There are no translations available.
![]()
![]()
Pour ce tuto, nous allons prendre le cas de la vue par défaut (pour une autre vue, il faudrait éditer le fichier php correspondant).
Nous allons éditer le fichier default.php.
Chemin : termplates > ja_purity_ii > layouts > default.php
| default.php | |
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
$this->_basewidth = 20; $positions = array ( 'left1' =>'left', 'left2' =>'', 'left-mass-top' =>'', 'left-mass-bottom' =>'', 'right1' =>'right', 'right2' =>'', 'right-mass-top' =>'', 'right-mass-bottom' =>'', 'content-mass-top' =>'', 'content-mass-bottom' =>'', 'content-top' =>'', 'content-bottom' =>'', 'inset1' =>'', 'inset2' =>'' ); //$this->customwidth('right1', 25); <== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns. $this->definePosition ($positions); |
Pour personnaliser la largeur des colonnes de gauche et droite, nous allons rajouter des lignes avant $this->definePosition ($positions);
Exemple :
| default.php | |
33 34 35 36 |
//$this->customwidth('right1', 25); <== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns. $this->customwidth('left1', 35); $this->customwidth('right1', 20); $this->definePosition ($positions); |
Avec ces valeurs, la colonne de gauche fera 35% la partie centrale 45% et la colonne de droite 20 %
















