mvn Posted July 27, 2021 Share Posted July 27, 2021 i try to upgrade my ajax search in admin area. i try working with: IntelligentSearch hook. the problem: the ajax search filter the results by categorys for exmple: clients or invoice and after this showing the results in the category on search. and all the results he show from my hook inside the category "aother search results" but the other search results there are invoices so i want show them below invoices category in search, its possibole ? this is the code: foreach ($client as $c) { $searchResults[] = [ 'title' => 'חשבונית מס קבלה מספר #'.$invoice->invoicenum, // The title of the search result. This is required. 'href' => 'invoices.php?action=edit&id='.$invoice->id, // The destination url of the search result. This is required. 'subTitle' => $c->firstname.' '.$c->lastname.' '.$c->companyname, // An optional subtitle for the search result. 'icon' => 'fal fa-file-invoice', // A font-awesome icon for the search result. Defaults to 'fal fa-star' if not defined. ]; } } 0 Quote Link to comment Share on other sites More sharing options...
mvn Posted July 29, 2021 Author Share Posted July 29, 2021 some one can help me ? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.