简体   繁体   English

我该如何覆盖finerycms搜索视图?

[英]How can i override refinerycms-search views?

I want to customize the display of the search results but I cannot seem to override refinerycms-search views? 我想自定义搜索结果的显示,但似乎无法覆盖finerycms-search视图? I have looked at https://gist.github.com/ryandeussing/2502881 and have tried a combination of rake task, but no success. 我查看了https://gist.github.com/ryandeussing/2502881 ,并尝试了组合rake任务,但没有成功。

I ended up just adding the files manually and copying pasting the code from github. 我最终只是手动添加文件,然后从github复制粘贴代码。 For example, I created a directory and a file app/views/refinery/ search/show.html.erb and copied and paste the code from refinerycms-search corresponding views as a starting point. 例如,我创建了一个目录和一个文件app / views / refinery / search / show.html.erb ,然后从finerycms -search对应的视图中复制并粘贴了代码作为起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM