Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Adding a new search field in "Search posts"

Quote Reply
Adding a new search field in "Search posts"
Hi,

What is the best way to add a new search_field in "Search posts" function. Editing Search.pm? With a global? Editing the search form?

Thank you.

François
Quote Reply
Re: [Franco] Adding a new search field in "Search posts" In reply to
Ok, I simply added this code in Search.pm (at the right place):

Code:
}
if (index($fields, 'c') >= 0) {
push @fields, 'post_custom';


It would be great to be able to add new search fields for posts in the control panel, similar to the "user_search_allowed" feature (Setup -> Users).

Thank you. Smile

François