Purity2.fr

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase Font Size
  • Default Font Size
  • Decrease Font Size
French (Fr)English (United Kingdom)
btn_25
afuj
joomla_1_5_25
telecharger_joomla_17

Les positions (à venir ....)

Les notions de Wrap et de Main | Les styles de modules Jaxhtml et Jarounded | définition des blocks | variations de positions

HEADER (à finir) | MAINNAV | TOPSL | BOTSL | FOOTER | LEFT | RIGHT | MAIN

Redimensionner les colonnes Left et Right

User Rating: / 4
PoorBest 
There are no translations available.

15_natif

niveau_2

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 %


joomlart ja purity 2

purity2_thumbnail

Joomlart - T3 Blank

t3blank_thumbnail

Les liens intéressants

web_links

adaptations de Ja Purity II

purity2_thumbnail
You are here: Tutoriels Mise en page Divers Redimensionner les colonnes Left et Right