class.plx.show,gagner un peu de place

dans "class.plx.show.php", pourquoi ne pas remplacer :
if(!empty($this->plxMotor->aConf['description']))
				echo plxUtils::strCheck($this->plxMotor->aConf['title'].' - '.$this->plxMotor->aConf['description']);
			else
				echo plxUtils::strCheck($this->plxMotor->aConf['title']);
			return;
		}
		if($this->plxMotor->mode == 'categorie') {
			echo plxUtils::strCheck($this->plxMotor->aConf['title'].' - '.$this->plxMotor->aCats[ $this->plxMotor->cible ]['name']);
			return;
		}
		if($this->plxMotor->mode == 'article') {
			echo plxUtils::strCheck($this->plxMotor->plxRecord_arts->f('title').' - '.$this->plxMotor->aConf['title']);
			return;
		}
		if($this->plxMotor->mode == 'static') {
			echo plxUtils::strCheck($this->plxMotor->aConf['title'].' - '.$this->plxMotor->aStats[ $this->plxMotor->cible ]['name']);
			return;
(ligne 192) par :
if(!empty($this->plxMotor->aConf['description']))
				echo plxUtils::strCheck($this->plxMotor->aConf['title'].','.$this->plxMotor->aConf['description']);
			else
				echo plxUtils::strCheck($this->plxMotor->aConf['title']);
			return;
		}
		if($this->plxMotor->mode == 'categorie') {
			echo plxUtils::strCheck($this->plxMotor->aConf['title'].','.$this->plxMotor->aCats[ $this->plxMotor->cible ]['name']);
			return;
		}
		if($this->plxMotor->mode == 'article') {
			echo plxUtils::strCheck($this->plxMotor->plxRecord_arts->f('title').','.$this->plxMotor->aConf['title']);
			return;
		}
		if($this->plxMotor->mode == 'static') {
			echo plxUtils::strCheck($this->plxMotor->aConf['title'].','.$this->plxMotor->aStats[ $this->plxMotor->cible ]['name']);
			return;
je sais que ça peut paraître un peut "bénin", mais parfois quelques caractères supplémentaires, surtout dans 'title' et 'description' peuvent jouer au niveau du référencement .... :)

Réponses

  • StéphaneStéphane Member, Former PluXml Project Manager
    Donc tu préconises une virgule, plutôt qu'un tiret pour un meilleur référencement. Pourquoi pas si ça a vraiment son importance. A vérifier et à confirmer si d'autres experts en référencement passent par là.

    Consultant PluXml

    Ancien responsable du projet (2010 à 2018)

  • ce n'est pas tant le problème de la 'virgule' ou du 'tiret', mais celui des espaces avant et après, inutiles et qui peuvent faire gagner 2 caractères, donc dans certains cas faire mieux prendre en compte un titre ou une balise (description ..) en donnant parfois la possibilité qu'un mot ne soit pas 'coupé' dans l'algo de prise en compte des moteurs :)
    plus on leur en donne, mieux c'est, donc les espaces : à éviter !
Connectez-vous ou Inscrivez-vous pour répondre.