We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44231
    • 126 Posts
    hi im currently using ADV search but I never make it working
    Im using a custom hook
    and this is the code

    <?php
    
    
    $main = array(
        'package' => "modx_tblbook",
        'packagePath' => "{core_path}components/modx_tblbook/model/",
        'class' => "Tblbook",
        'fields' => "brand_name, company", // displayed
        'withFields' => "brand_name, company"// where we do the search
    
    );
    
    
    // set the query hook declaration
    $qhDeclaration = array(
        'qhVersion' => '1.2',       // version of queryHook - to manage futures changes
    	'main' => $main,
    );
    
    $hook->setQueryHook($qhDeclaration);
    
    return true;


    it result nothing sad

    what should I do