Results 1 to 5 of 5

Thread: Pagination list template

  1. #1
    New user
    Join Date
    06-14-16.
    Posts
    22

    Default Pagination list template

    Hi,

    I would implement a pagination in listing template on the top and bottom, who is the template for the mm listing pagination ?

    Thx

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    Figure it out by examining your settings or with [rocksolid-frontend-helper].
    Last edited by Andreas; 11/22/2016 at 15:33.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    New user
    Join Date
    06-14-16.
    Posts
    22

    Default

    Hi
    Thx for the reply, i have put the code from pagination.html5 in metamodels listing template

    HTML Code:
    <!-- indexer::stop -->
    <div class="pagination block">
    
      <p><?= $this->total ?></p>
    
      <ul>
        <?php if ($this->hasFirst): ?>
          <li class="first"><a href="<?= $this->first['href'] ?>" class="first" title="<?= $this->first['title'] ?>"><?= $this->first['link'] ?></a></li>
        <?php endif; ?>
    
        <?php if ($this->hasPrevious): ?>
          <li class="previous"><a href="<?= $this->previous['href'] ?>" class="previous" title="<?= $this->previous['title'] ?>"><?= $this->previous['link'] ?></a></li>
        <?php endif; ?>
    
        <?php foreach ($this->pages as $page): ?>
          <?php if ($page['href'] === null): ?>
            <li><span class="current"><?= $page['page'] ?></span></li>
          <?php else: ?>
            <li><a href="<?= $page['href'] ?>" class="link" title="<?= $page['title'] ?>"><?= $page['page'] ?></a></li>
          <?php endif; ?>
        <?php endforeach; ?>
    
        <?php if ($this->hasNext): ?>
          <li class="next"><a href="<?= $this->next['href'] ?>" class="next" title="<?= $this->next['title'] ?>"><?= $this->next['link'] ?></a></li>
        <?php endif; ?>
    
        <?php if ($this->hasLast): ?>
          <li class="last"><a href="<?= $this->last['href'] ?>" class="last" title="<?= $this->last['title'] ?>"><?= $this->last['link'] ?></a></li>
        <?php endif; ?>
      </ul>
    
    </div>
    <!-- indexer::continue -->
    <?php $strRendersettings = isset($this->settings)? 'settings' : 'view'; ?>
    <?php if ($this->items->getCount()): ?>
    <div class="layout_full">
    
    <?php foreach ($this->items->parseAll($this->getFormat(), $this->view) as $arrItem): ?>
    <div class="item <?php echo $arrItem['class']; ?>">
    	<?php echo $arrItem['html5']['photos']; ?>
    </div>
    <div class="topClient">
    <div class="infosClient">
    <p class="pseudo"><?php echo $arrItem['html5']['pseudo']; ?></p>
    <p class="localite">Localité : <?php echo $arrItem['html5']['localite']; ?></p>
    <p>Appareil posé le <?php echo $arrItem['html5']['datePose']; ?></p>
    <p>Modèle : <?php echo $arrItem['html5']['modeles']; ?></p>
    </div>
    <div class="garantie"></div>
    <div class="btnFiche">
    <div class="docsTarifsL">
    <a title="Obtenir documentations et tarifs" href="contact.html">Obtenir documentations et tarifs</a>
    </div>
    <div class="demandeRappelL">
    <a title="Demandez à être rappelé" href="contact.html">Demandez à être rappelé</a>
    </div>
    </div>
    </div>
    
    <h3 class="titleFiche">Fiche de satisfaction</h3>
    <?php echo $arrItem['html5']['fiche']; ?>
    <?php endforeach; ?>
    </div>
    <?php else: ?>
    <p class="info"><?php echo $this->noItemsMsg; ?></p>
    <?php endif; ?>
    But on the top i have just the number of items and the pagination is empty

    What's wrong ?

    The link to the project http://dev.alsace-monte-escaliers.co...moignages.html

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    No, you have to modify the template used in the MetaModel-List module. e.g. mod_metamodel_list.html5. There you find this line
    PHP Code:
    <?php echo $this->pagination?>
    Copy this line and place it where you want the second pagination to be.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    New user
    Join Date
    06-14-16.
    Posts
    22

    Default

    Hi,

    Thx for the tip

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •