http://snewscms.com/download/snews17_apr.15.2010.zip
Mozno by mi niekto vedel poradit, cele cms vyuziva rewrite a chcel by som na nom zmenit rewrite strankovania.
http://stranka/kategoria/ - hlavna strana
http://stranka/kategoria/p_2/ - druha strana
to p_2 by som chcel prepisat na strana-2 cize by to vyzeralo
http://stranka/kategoria/strana-2/
V snews.php som nasiel riadok:
Kód:
$l['paginator'] = 'p_';
$l['comment_pages'] = 'c_'; //pri komentaroch
ale ked to p zmenim za cokolvek, tak sa mi uz druha strana nezobrazi, cize je to asi viac previzane v tom kode.
Takto vyzera dana funkcia:
Kód:
// PAGINATOR
function paginator($pageNum, $maxPage, $pagePrefix) {
global $categorySEF,$subcatSEF, $articleSEF,$_ID, $_catID,$_POS, $_XNAME;
switch (true){
case !$_ID && !$_catID :
$uri ='';
break;
case $_ID && $_XNAME :
$uri = $categorySEF.'/'.$subcatSEF.'/'.$articleSEF.'/';
break;
case $_POS == 1 || $_XNAME :
$uri = $categorySEF.'/'.$subcatSEF.'/';
break;
default :
$uri = $categorySEF.'/';
}
$link = '<a href="'._SITE.$uri ;
$prefix = !empty($pagePrefix) ? $pagePrefix : '';
if ($pageNum > 1) {
$goTo = $link;
$prev = (($pageNum-1)==1 ? $goTo :
$link.$prefix.($pageNum - 1).'/').'" title="'.l('page').' '.($pageNum - 1).'">
< '.l('previous_page').'</a> ';
$first = $goTo.'" title="'.l('first_page').' '.l('page').'">
<< '.l('first_page').'</a>';
} else {
$prev = '< '.l('previous_page');
$first = '<< '.l('first_page');
}
if ($pageNum < $maxPage) {
$next = $link.$prefix.($pageNum + 1).'/" title="'.l('page').' '.($pageNum + 1).'">
'.l('next_page').' ></a> ';
$last = $link.$prefix.$maxPage.'/" title="'.l('last_page').' '.l('page').'">
'.l('last_page').' >></a> ';
} else {
$next = l('next_page').' > ';
$last = l('last_page').' >>';
}
echo '
<div class="paginator">
'.$first.' '.$prev.'
<strong>['.$pageNum.'</strong> / <strong>'.$maxPage.']</strong>
'.$next.' '.$last.'
</div>';
}
Mozno nejaky koder pozrie a vidi v com je problem