$main = array( 'package' => 'modx', 'packagePath' => '/home/mydomain/domains/mydomain.com/public_html/core/model/modx/', 'class' => 'modUser', 'fields' => 'username', 'withFields' => 'username', 'sortby' => 'modUser.username DESC', 'tablePrefix' => 'modx_' ); $joined = array( array( 'package' => 'modx', 'packagePath' => '/home/mydomain/domains/mydomain.com/public_html/core/model/modx/', 'class' => 'modUserProfile', 'withFields' => 'fullname,city', 'fields' => 'fullname,city', 'joinCriteria' => 'modUser.id = modUserProfile.internalKey', 'tablePrefix' => 'modx_' ) ); $qhDeclaration = array( 'qhVersion' => '1.2', // version of queryHook - to manage futures changes 'main' => $main, 'joined' => $joined, ); $hook->setQueryHook($qhDeclaration); return true;
[[AdvSearchForm? &searchIndex=`zoekterm` &tpl=`zoekformulier` &asId=`mysearch` &addJs=`0` &addCss=`0` &addJQuery=`0` ]] [[!AdvSearch? &perPage=`10` &queryHook=`searchUsers` &debug=`0` &tpl=`zoekresultaat` &asId=`mysearch` &searchIndex=`zoekterm` ]]
<li> [[+username]] - [[+id]] <h3>[[+fullname]]</h3> <span class="city">[[+city]]</span> </li>
[2014-02-05 11:32:08] (ERROR @ /index.php) Error HY000 executing statement: Array ( [0] => HY000 [1] => 1267 [2] => Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like' )
This question has been answered by michelle84. See the first response.
(ERROR @ /index.php) Could not load class: modValidator from validation.modvalidator.