-
Notifications
You must be signed in to change notification settings - Fork 55
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
Translate page title in search results #43
Comments
Currently this is somewhat hardcoded. I need to think of a good way to allow multi language pages. |
Really I need to add support for a custom Grav page of your choosing that you use to setup translated titles and such. |
Thank you for your answer. Multilingual date formats should be considered too. |
simplesearch is actually pointing to |
Hi guys! Perhaps a solution for the title of the results page to be translated. Simply by replacing the title tag of the base.html.twig page of your theme: |
What's the status? |
Made code modifications to create a custom page without having to include a simplesearch section in the header. If the custom page contains a template variable in the header, it takes precedence over the setting in the config file. When using the default page, the opposite behavior occurs, where the settings in the config file are preferred, which overrides the settings in the page header, assuming that the default page now contains the template variable directly from the plugin authors. This fixes some of the issues described in #173 and #43 (maybe others too). I will send other separate improvements in the next Pull request.
As far as I can see the page title comes from "pages/simplesearch.md". Have I overlooked something or does that mean the page title is not able to be multilanguage?
The text was updated successfully, but these errors were encountered: