-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for custom Templates in Global Search #9323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look ok
b9260c4
@jack7anderson7 commits need the issue number? @JimMackin could we squash some of the commits? |
…mplates and use them if they exist.
5c575c1
to
745bbf3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hey folks! I've had a look at this, but it appears as though the Search Form returns a Fatal error if no custom files are found. As this would be the default state, this seems like it may be an issue: Additionally, it seems to be searching in Is this expected? Thanks! |
Hello, @JimMackin The PR has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs. Regards, |
@johnM2401 you said it returns a fatal error. What is the text of that error? This should be easy to fix, we might as well just get it done |
Hey @pgorod ! The FATAL errors appear to be:
I've also recorded a quick gif to show this: Initially, the Search Results page fails to render, as the After copying the OOTB (Interestingly, an absent Hopefully this helps! |
I guess the call to Maybe try this, without any relative paths (are they needed?) parent::__construct(get_custom_file_if_exists('lib/Search/UI/templates/search.form.tpl')); |
Hello all! It seems logical to have all the customisations in one particular place, in this case, I suggest slightly another changes:
Thanks! Regards, |
Hello all! As the communication has stopped at some point in this PR, I've just marked this one as Stale and recreated it: One more time - thanks to @JimMackin for raising the issue and suggesting the fix! Many thanks! Regards, |
Description
The global search (elastic specifically) uses hard coded templates which makes this functionality hard to customise. This change adds a check for custom files similarly to how other parts of the CRM do.
Motivation and Context
To allow customising the Search templates for the search form and results
How To Test This
Types of changes
Final checklist