getgrav / grav-theme-gateway

Gateway incorporates elegant style with user friendly customizer options making it perfectly suited for a variety of Grav users. With rock solid development and flexible integration, the Gateway theme is sure to be a favorite for first time Grav users and experienced developers alike.
https://getgrav.org
GNU General Public License v2.0
12 stars 9 forks source link

Search #10

Open kram3r91 opened 7 years ago

kram3r91 commented 7 years ago

I added simplesearch plugin, configured same from documentation and always return 0 results. Why ? Same problem i founded in official demo: https://demo.getgrav.org/gateway-skeleton/

coffeincode commented 5 years ago

I have the same problem, please give advice what to do to fix it. The problem is definately in the routing, searchqueries are always redirected to the same page instead of a searchresults-page.

rominronin commented 4 years ago

I have the same issue, the search functionality is incomplete: if you manually enter the url of the search route followed by the query, I get the following message: "Query: found results"

It looks like several things are missing:

  1. the route is not bound correctly
  2. the search results page doesn't correctly render the returned results.
rominronin commented 4 years ago

I found the issue, I knew it had to something simple: The sidebar references the partial 'simplesearch_searchbox.html.twig', but the theme only has a 'search.html.twig' partial template. I guess this takes the default template from the simplesearch module, which is not correctly set up for the gateway theme.

You can either rename the sidebar reference to search.html.twig, os rename the template in the theme/templates/partials folder and it works again.

There still seem to be some issues, like the option to enable/disable the search button doesn't change anything, but that's a different issue.

Is the project still maintained? I see several open pull requests, some of them quite old (and urgent)...