[RÉSOLU] Besoin d'aide sur modif d'un thème

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

Réponses

  • StéphaneStéphane Member, Former PluXml Project Manager
    Bonjour,

    As-tu déjà régler le paramètre dans l'admin pour afficher 6 articles par page

    Consultant PluXml

    Ancien responsable du projet (2010 à 2018)

  • StéphaneStéphane Member, Former PluXml Project Manager
    Sinon il faut peut etre répeter ce pavé dans le home.php
    <?php $plxShow->plxMotor->plxRecord_arts->loop(); ?>
    				<div class="col">
    					<h2><?php $plxShow->artTitle(); ?></h2>
    					<p><?php $plxShow->artChapo($format="Lire la suite..."); ?><p>
    				</div>
    

    Consultant PluXml

    Ancien responsable du projet (2010 à 2018)

  • Merci Stéphane pour ton aide, mais çà ne fonctionne pas

    à 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ère ;)
  • Merci Stéphane car "tu m'as montré la voie" ;)

    le 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 Article

    je vais trouver, çà m'énerve...........:P
  • Bon j'ai modifié le code suivant
    <h3>Articles</h3>
    
    par le code
    <h3></h3>
    
    ainsi mon problème est réglé !

    Merci Stéphane pour le début
Connectez-vous ou Inscrivez-vous pour répondre.