petroniusz Posted July 23, 2015 Share Posted July 23, 2015 Witam, chciałbym w back office, na liście produktów powtórzyć nad tabelą z produktami całą paginację, która jest domyślnie pod tabelą. Ktoś wie gdzie tego szukać/co zmienić? Będę wdzięczny za pomoc. Pozdr Piotr Link to comment Share on other sites More sharing options...
Yabber Posted July 23, 2015 Share Posted July 23, 2015 (edited) W pliku: /KATALOG_ADMINA/themes/default/template/controllers/products/helpers/list/list_header.tpl zrób tak: {extends file="helpers/list/list_header.tpl"} {block name=leadin} {if isset($category_tree)} <div class="bloc-leadin"> <div id="container_category_tree"> {$category_tree} </div> </div> {/if} <div class="row"> {if !$simple_header && $list_total > $pagination[0]} <div class="col-lg-12"> <ul class="pagination pull-right"> <li {if $page <= 1}class="disabled"{/if}> <a href="javascript:void(0);" class="pagination-link" data-page="1" data-list-id="{$list_id}"> <i class="icon-double-angle-left"></i> </a> </li> <li {if $page <= 1}class="disabled"{/if}> <a href="javascript:void(0);" class="pagination-link" data-page="{$page - 1}" data-list-id="{$list_id}"> <i class="icon-angle-left"></i> </a> </li> {assign p 0} {while $p++ < $total_pages} {if $p < $page-2} <li class="disabled"> <a href="javascript:void(0);">…</a> </li> {assign p $page-3} {elseif $p > $page+2} <li class="disabled"> <a href="javascript:void(0);">…</a> </li> {assign p $total_pages} {else} <li {if $p == $page}class="active"{/if}> <a href="javascript:void(0);" class="pagination-link" data-page="{$p}" data-list-id="{$list_id}">{$p}</a> </li> {/if} {/while} <li {if $page >= $total_pages}class="disabled"{/if}> <a href="javascript:void(0);" class="pagination-link" data-page="{$page + 1}" data-list-id="{$list_id}"> <i class="icon-angle-right"></i> </a> </li> <li {if $page >= $total_pages}class="disabled"{/if}> <a href="javascript:void(0);" class="pagination-link" data-page="{$total_pages}" data-list-id="{$list_id}"> <i class="icon-double-angle-right"></i> </a> </li> </ul> </div> {/if} </div> {/block} Edited July 23, 2015 by Yabber (see edit history) Link to comment Share on other sites More sharing options...
petroniusz Posted July 24, 2015 Author Share Posted July 24, 2015 Oczywiście działa. Dzięki! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now