Hello. It was necessary to add an arbitrary container to the site display template. Below is attached a schematic illustration for clarity and a code snippet. At the moment, the elements are displayed as follows:
It is necessary to implement the addition of a custom container, for example, after material 6 as follows:
Here is a snippet of code that is responsible for displaying materials:
<?php if(count($this->items)): ?> <div class="tagItemList"> <?php foreach($this->items as $item): ?>
Through the admin panel indicates the number of displayed materials on the page (in this case, it is 12). Accordingly, there is a pagination.
<!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php/* echo $this->pagination->getPagesCounter();*/ ?> </div> <?php endif; ?>
Please tell me how to make the custom DIV displayed on the position after material 6 on each pagination page. Thank!