Thanks nice snippet !
Have you noticed this problem already ?
: When tagging, pagenation doesn’t work properly.
My template looks like this:
[[Ditto? &tpl=`DittoTemplate` &summarize=`6` &archiveDateType=`pub_date` &sortBy=`pub_date` &dateFormat=`%Y-%m-%d %H:%M` &truncText=`Read More...` &paginate=`1` &paginateAlwaysShowLinks=`1`&tagData=`tvtags` &tagDelimiter=`,` &tagMode=`onlyTags`]]
<div class="pagenate">
[+previous+] | [+pages+] | [+next+]
</div>
and [+next+] turns links this:
(Current) <a href="url?start=6">next</a>
(Right) <a href="url?start=6&tags=tags">next</a>
I changed debug.class.inc.php paginate function,
(Current)
$next = $start + $summarize;
$query = "";
(Changed)
$next = $start + $summarize;
$query = "";
$tagUrl = "&tags=".$this->tags;
(Current)
$nextlink = "<a href='".$this->buildURL("start=$next")."'>" . $tplNext . "</a>";
$previous = $start - $summarize;
$previouslink = "<a href='".$this->buildURL("start=$previous")."'>" . $tplPrevious . "</a>";
(Changed)
$nextlink = "<a href='".$this->buildURL("start=$next").$tagUrl."'>" . $tplNext . "</a>";
$previous = $start - $summarize;
$previouslink = "<a href='".$this->buildURL("start=$previous").$tagUrl."'>" . $tplPrevious . "</a>";
(Current)
$pages .= "<a class=\"ditto_page\" href='".$this->buildURL("start=$inc")."'>$display</a>";
(Changed)
$pages .= "<a class=\"ditto_page\" href='".$this->buildURL("start=$inc").$tagUrl."'>$display</a>";
I’ll be glad if this info could help you.