projectblacklight / blacklight

Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.
http://projectblacklight.org/
Other
758 stars 257 forks source link

Blacklight 8 view not overriding #3352

Open saffeullah opened 1 week ago

saffeullah commented 1 week ago

Hi everyone, i am trying to override Blacklight 8.0 app/views/catalog/_facet_layout.html.erb file but the changes aren't getting reflected on the production server. I have tried clearing cache too. Any idea what is going on? I tested overriding same facet with Blacklight 7 and it worked.

If i want to change the same view functionality in blacklight 8. What will you suggest? Blacklight 8 github repo contains app/views/catalog/_facet_layout.html.erb view. You can check here https://github.com/projectblacklight/blacklight/blob/release-8.x/app/views/catalog/_facet_layout.html.erb

So if offcial blacklight 8 repo contains the same view, shouldn't it be easily overridden? Or there is some other way to achieve this in blacklight 8?

jcoyne commented 4 days ago

Have you tried enabling config.action_view.annotate_rendered_view_with_filenames = true and viewing the page source? Does that give you any insight into what partials are being used?