[RÉSOLU] Text in home.php
I'd like to insert some home page text in home.php rather than use a static home page. If I insert it here...
(pardon je ne parle (ou ecrire!) pas bien le Francaise mais je peux le lire
Merci
Paul
EDIT
I would also comment out the following line so only n items are shown on this 'home page'
<?php include(dirname(__FILE__).'/header.php'); # On insere le header ?>
<div id="page">
<div id="content">
INSERT HERE
<?php while($plxShow->plxMotor->plxRecord_arts->loop()): # On boucle sur les articles ?>
Will that be ok or will it upset anything else?(pardon je ne parle (ou ecrire!) pas bien le Francaise mais je peux le lire
Merci
Paul
EDIT
I would also comment out the following line so only n items are shown on this 'home page'
<!-- <p id="pagination"><?php $plxShow->pagination(); ?></p> -->
Connectez-vous ou Inscrivez-vous pour répondre.
Réponses
1. the best way is to define a div tag to insert your code like this:
In style.css you can ajust settings on how to display the content of the div tag
for example: 2. If you comment out the pagination, only n items will be displayed (depending on admin parameter: articles per page)
Consultant PluXml
Ancien responsable et développeur de PluXml (2010 à 2018)
I've discovered a slight problem with this though - disabling the pagination doesn't show the latest articles which is what I was trying to achieve. If pagination is enabled then the inserted text will be visible at the top of each page rather than just on the home page. Hmmmm..... is there a better way to achieve that? What I'm trying to get is...
[Home page]
Welcome text
Latest articles
[next page]
older articles]
[next page]
older articles]
etc
Many thanks
Paul
In home.php, add this
Welcome message will be only displayed on the first page
Consultant PluXml
Ancien responsable et développeur de PluXml (2010 à 2018)
Merci bien
Paul