Jump to content

in


mvn

Recommended Posts

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.
            ];
          }
      }

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated