chcialbym Was uprzejmych forumowiczow poprosic o pomoc.
Mam zainstalowana j1.7 i chce zrobic zmiany w paginacji (na dole strony linki do nastepnych i poprzednich stron), ale jak na razie sie gubie.
Do tej pory zrobilem rozwiazanie polowiczne, ktore mnie nie satysfakcjonuje. w css podstawilem obrazek i czcionke zrobilem w kolorze przezroczystym. Niestety nie jest to dobre rozwiazanie bo IE pokazuje czciaonke w innym kolorze niz przezroczystym. zobaczyc to mozna tu: dantepineda.com/arte
Znalazlem w necie rozwiaznie dla j1.5, ktore sprawdzilem na jednej instalacji i dziala dobrze. Probowalem zaimplementowac to rozwiaznie do j1.7 ale niestety cos dziala zle, ze nie dziala.
Czy ktosby mogl rzucic okiem - prosze.
w templatce zrobilem katalog "html" tam umiescilem plik pagination.php o nastepujacej tresci:
<?php /** * @version $Id: pagination.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access /** * This is a file to add template specific chrome to pagination rendering. * * pagination_list_footer * Input variable $list is an array with offsets: * $list[limit] : int * $list[limitstart] : int * $list[total] : int * $list[limitfield] : string * $list[pagescounter] : string * $list[pageslinks] : string * * pagination_list_render * Input variable $list is an array with offsets: * $list[all] * [data] : string * [active] : boolean * $list[start] * [data] : string * [active] : boolean * $list[previous] * [data] : string * [active] : boolean * $list[next] * [data] : string * [active] : boolean * $list[end] * [data] : string * [active] : boolean * $list[pages] * [{PAGE}][data] : string * [{PAGE}][active] : boolean * * pagination_item_active * Input variable $item is an object with fields: * $item->base : integer * $item->link : string * $item->text : string * * pagination_item_inactive * Input variable $item is an object with fields: * $item->base : integer * $item->link : string * $item->text : string * * This gives template designers ultimate control over how pagination is rendered. * * NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both */ function pagination_list_footer($list) { $html = "<div class=\"list-footer\">\n"; $html .= "\n<div class=\"limit\">".JText::_('JGLOBAL_DISPLAY_NUM').$list['limitfield']."</div>"; $html .= $list['pageslinks']; $html .= "\n<div class=\"counter\">".$list['pagescounter']."</div>"; $html .= "\n<input type=\"hidden\" name=\"" . $list['prefix'] . "limitstart\" value=\"".$list['limitstart']."\" />"; $html .= "\n</div>"; return $html; } function pagination_list_render($list) { // Reverse output rendering for right-to-left display. $html = '<ul>'; $html .= '<li class="pagination-prev">'.$list['previous']['data'].'</li>'; $html .= '<li class="pagination-next">'. $list['next']['data'].'</li>'; $html .= '</ul>'; return $html; } function pagination_item_active(&$item) { switch ($item->text){ case JText::_('JPREV'): $cadImg = "<img src='images/stories/navegacion/avanzar--29x29.jpg'"; break; case JText::_('JNEXT'): $cadImg = "<img src='images/stories/navegacion/avanzar--29x29.jpg'"; break; default: $cadImg = $item->text; break; } $cad = "<li><strong><a href=\"".$item->link."\" >".$cadImg."</a></strong></li>"; return $cad; } function pagination_item_inactive(&$item) { switch ($item->text){ case JText::_('JPREV'): $cadImg = "<img src='images/stories/navegacion/avanzar--29x29.jpg'"; break; case JText::_('JNEXT'): $cadImg = "<img src='images/stories/navegacion/avanzar--29x29.jpg'"; break; default: $cadImg = $item->text; break; } $cad = "<li>".$cadImg."</li>"; return $cad; } ?>
Z gory dziekuje za pomoc.
Notintine