Hi everyone,
I’m having an issue with ditto not displaying random items with pagination. It displays the 1st page no problem. if i refresh it randomises and displays the new items BUT
if i click on the pagination link i.e. go to page 2 then the listings arent displayed. when i run ditto with debug on, I can see the correct retrieved data but
it isnt displayed.
I’m running MODx v0.9.6.1 with ditto 2.1 on a linux server running php 5.2.3
any help/ideas would be seriously appreciated!
ok so heres part of page template (the page which uses this template has caching turned off)
[color=blue] <div id="content">
<h1>[*pagetitle*]</h1>
[*content_header_image*]
<h2>[*longtitle*]</h2>
[*content*]
{{basic_index_pagination}}
[b][[[/b]Ditto? &tpl=`member_index_item` &display=`5` &paginate=`1` &randomize=`1` &paginateAlwaysShowLinks=`1` &depth=`1` &sortBy=`pagetitle` &sortDir=`asc` &hiddenFields=`member_site`[b]]][/b]
{{basic_index_pagination}}
</div>[/color]
the chunk called
basic_index_pagination contains the following code:
[color=blue]
<div class="pagination">
<p>
Results page <strong>[+currentPage+]</strong> of <strong>[+totalPages+]</strong>, showing articles <strong>[+start+]</strong> - <strong>[+stop+]</strong> of <strong>[+total+]</strong>.
</p>
<p class="pagination_links">[+previous+] | [+next+]</p>
</div>[/color]
the chunk that is called by ditto (
member_index_item) contains the following:
[color=blue]
<div class="index_item">
<div style="float:left;width:418px;margin-left:10px;">
<h4>
<a href="index.php?id=[+id+]">[+pagetitle+]</a>
</h4>
<p>[+introtext+] - <a href="index.php?id=[+id+]">More information...</a></p>
</div>
</div>
<div style="clear:both"></div>
[/color]