If I the folder has no subfolders or documents (nothing to show), the chunk is still shown but empty.
Forgive me if this has been brought up before, but has anybody noticed that if you set "total" to be a bigger number than the number of items available, Ditto whitescreen-of-deaths? Ie. if there are only 50 items to list and you call ditto with total=`100`... it’s no good.
Story of my career, I’ve either found a bug or I’m just really bad at what I’m doing
the French language for Ditto.
Enjoy
Tof
Quote from: tof at May 18, 2006, 03:55 PM
the French language for Ditto.
Enjoy
Tof
The zip file seems to be corrupted. See the Topic http://modxcms.com/forums/index.php/topic,4547.msg32920.html#msg32920 to have the French language file and a link to the snippet traduction on the Wiki.
Here is the screenshot of my document tree. It’s the default MODx installation and I have added a new folder.
Quote from: Boby at May 18, 2006, 08:07 AM
If I the folder has no subfolders or documents (nothing to show), the chunk is still shown but empty.
Could you provide your snippet call and a screenshot of your document tree fully expanded so I can determine if this is a configuration issue or a problem with Ditto itself. Thanks.

[[Ditto? &tpl=`DittoTemplate` &startID=`38` &summarize=`5` &descendentDepth=`0` &multiLevel=`1` &showPublishedOnly=`1` &showInMenuOnly=`1` &sortBy=`pub_date` &sortDir=`DESC` &trunc=`0` &trunLen=`300` &commentsChunk=`FormBlogComments`]]
[[Ditto? &tpl=`DittoTemplate` &startID=`2` &summarize=`5` &descendentDepth=`0` &multiLevel=`1` &showPublishedOnly=`1` &showInMenuOnly=`1` &sortBy=`createdon` &sortDir=`DESC` &trunc=`0` &trunLen=`300` &commentsChunk=`FormBlogComments`]]
<div class="ditto_summaryPost"><h3><a href="[~~]"></a></h3><small></small><div></div><p></p><div style="text-align:right;">by <strong></strong></div></div>
&hideFolders=`1`
Hmmm, if I add &hideFolders=`1` to my index page, Ditto will get me just the parent document/folder (ID=2). It’s like if I’d add multiLevel=0.
At first glance I believe Ditto is indexing the folders as it is supposed to. Add this to your snippet call to remove the folders from view:
&hideFolders=`1`
Let me know if that works...
function paginate($start, $stop, $total, $summarize, $tplArchiveNext, $tplArchivePrevious, $paginateAlwaysShowLinks){function paginate($start, $stop, $total, $summarize, $tplArchiveNext, $tplArchivePrevious, $paginateAlwaysShowLinks, $paginateSplitterCharacter){$ditto->paginate($start, $stop, $total, $summarize, $tplArchiveNext, $tplArchivePrevious, $paginateAlwaysShowLinks);
$ditto->paginate($start, $stop, $total, $summarize, $tplArchiveNext, $tplArchivePrevious, $paginateAlwaysShowLinks, $paginateSplitterCharacter);
This discussion is closed to further replies. Keep calm and carry on.