I have a question related to fields defined in config. I'm maybe missing something super obvious, but I would like to know if it's possible to define fields only for one (or some) template(s)?
For exemple, I got a website with members pages. Each member has his own page with his profile pic, bio, projects...etc.
I would like to add a "profilepic" field query only for "member" template, and not for other pages. So far I got this:
profilepic query is added correctly in Algolia Indices but it is added in all my pages, and not only for members template. This is not a big issue as profilepic will be null for all other pages but I think it will be cleaner not to add unnecessary queries to pages and I was curious how to achieve this!
First of all, thanks for this extra nice plugin!
I have a question related to fields defined in config. I'm maybe missing something super obvious, but I would like to know if it's possible to define fields only for one (or some) template(s)?
For exemple, I got a website with members pages. Each member has his own page with his profile pic, bio, projects...etc. I would like to add a "profilepic" field query only for "member" template, and not for other pages. So far I got this:
profilepic
query is added correctly in Algolia Indices but it is added in all my pages, and not only for members template. This is not a big issue asprofilepic
will benull
for all other pages but I think it will be cleaner not to add unnecessary queries to pages and I was curious how to achieve this!Thanks for your help ☺️