Developer forum

Forum » Templates » Cannot use razor template for "Search filters"

Cannot use razor template for "Search filters"

Remi Muller
Reply

I can not use razor template for "Search filters"?

It might already work but i can not select a cshtml template from the dropdown.

 

 


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

Have you put your cshtml template in the Templates/Filter/ folder?

It's has to be put in this folder to appear in the template dropdown (the filters don't have a layout context). After selecting the template, MyTemplate.cshtml, you can then override the actual template used by creating the real filter template inside your design folder (Templates/Design/MyDesign/Filter/MyFilter.cshtml). 

Votes for this answer: 1
 
Remi Muller
Reply

Thanks, my bad. The template was not in the correct folder, oops.

 

You must be logged in to post in the forum