[RÉSOLU] Besoin d'aide sur modif d'un thème
dans Entraide et S.A.T
Bonjour,
j'aimerai utiliser ce thème http://ressources.pluxml.org/demo/006/?theme=0084 (theme-lawyer-attorney) mais je veux placer sur cet écran d'accueil 6 articles : 3 sur la 1ère ligne comme dans la démo et 3 sur une 2ème ligne en dessous des 3 premiers (et toujours sur le plan horizontal)
Ma question : sur quel fichier travailler, j'ai déjà un peu "touché" le home.php, mais sans succés
merci pour toute aide
j'aimerai utiliser ce thème http://ressources.pluxml.org/demo/006/?theme=0084 (theme-lawyer-attorney) mais je veux placer sur cet écran d'accueil 6 articles : 3 sur la 1ère ligne comme dans la démo et 3 sur une 2ème ligne en dessous des 3 premiers (et toujours sur le plan horizontal)
Ma question : sur quel fichier travailler, j'ai déjà un peu "touché" le home.php, mais sans succés
merci pour toute aide
0
Connectez-vous ou Inscrivez-vous pour répondre.
Réponses
As-tu déjà régler le paramètre dans l'admin pour afficher 6 articles par page
Consultant PluXml
Ancien responsable et développeur de PluXml (2010 à 2018)
Consultant PluXml
Ancien responsable et développeur de PluXml (2010 à 2018)
à la question 1 : oui j'ai réglé même 10 articles par page dans l'admin
résultat pour l'ajout du code : je me retrouve avec le "visuel suivant" :
Article 1
Article 2
Article 3
Vide
Article 4
Vide
Article 5
Article 6
voici le code avant modif
<?php include(dirname(__FILE__).'/header.php'); # On insere le header ?> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <div class="clr"></div> </div> <div id="main"> <div class="col"> <h3>Articles</h3> <?php while($plxShow->plxMotor->plxRecord_arts->loop()): # On boucle sur les articles ?> <div class="article"> <p class="date"><?php $plxShow->artDate(); ?> - <?php $plxShow->artCat(); ?></p> <h4><?php $plxShow->artTitle('link'); ?></h4> <?php $plxShow->artChapo($format=""); ?> </div> <div class="separator"> </div> <?php endwhile; # Fin de la boucle sur les articles ?> <?php $plxShow->pagination(); ?> </div> </div> <div class="clr"></div> </div> <?php include(dirname(__FILE__).'/footer.php'); # On insere le footer ?>et le code après modif<?php include(dirname(__FILE__).'/header.php'); # On insere le header ?> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <div class="clr"></div> </div> <div id="main"> <div class="col"> <h3>Articles</h3> <?php while($plxShow->plxMotor->plxRecord_arts->loop()): # On boucle sur les articles ?> <div class="article"> <p class="date"><?php $plxShow->artDate(); ?> - <?php $plxShow->artCat(); ?></p> <h4><?php $plxShow->artTitle('link'); ?></h4> <?php $plxShow->artChapo($format=""); ?> </div> <div class="separator"> </div> <?php endwhile; # Fin de la boucle sur les articles ?> <?php $plxShow->pagination(); ?> </div> </div> <div class="clr"></div> </div> <?php include(dirname(__FILE__).'/footer.php'); # On insere le footer ?>ooouuufff je galèrele code à placer est celui-ci
<?php include(dirname(__FILE__).'/header.php'); # On insere le header ?> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?> <div class="col"> <h2><?php $plxShow->artTitle(); ?></h2> <p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p> </div> <div class="clr"></div> </div> <div id="main"> <div class="col"> <h3>Articles</h3> <?php while($plxShow->plxMotor->plxRecord_arts->loop()): # On boucle sur les articles ?> <div class="article"> <p class="date"><?php $plxShow->artDate(); ?> - <?php $plxShow->artCat(); ?></p> <h4><?php $plxShow->artTitle('link'); ?></h4> <?php $plxShow->artChapo($format=""); ?> </div> <div class="separator"> </div> <?php endwhile; # Fin de la boucle sur les articles ?> <?php $plxShow->pagination(); ?> </div> </div> <div class="clr"></div> </div> <?php include(dirname(__FILE__).'/footer.php'); # On insere le footer ?>Mais quand même il reste "affiché" sur cette page le mot Articleje vais trouver, çà m'énerve...........:P
Merci Stéphane pour le début