I had to post again to say "Thanks!" for including the [tt]$where[/tt] parameter. Very cool and something I’ve wished for. I tried it and it worked fine. Thanks for the great work on Ditto.
EDIT: For you testers out there. There is something screwy about the [tt]&hideFolders[/tt] parameter. It returns folders for me even if I use [tt]&hideFolders=`1`[/tt].
I was wondering if this was the culprit in [tt]ditto.class.inc.php[/tt]? [tt]$hidefolders[/tt] does not have the "f" in folders capitalized. When I change that to a "F", I don’t get the error -- but it still returns folders no matter what I do.
// Create where clause
$where = $hidefolders ? 'isfolder = 0' : '';
$where .= $showInMenuOnly ? 'hidemenu = 0': '';
$where .= ($mywhere == '') ? '' : $mywhere;
Another thing is when using the &where parameter -- the SELECT statement returns with no space between the [tt]isfolder[/tt] and [tt]where[/tt] so it throws an error.
[tt]isfolder = [red]0p[/red]agetitle LIKE ’M%’[/tt]