Page 1 sur 1

search per field

Posté : ven. 20 avr. 2012 22:45
par kbondaren
Hi,
1. How do I create a search per field function. Now the search works on all fields at the same time.

2. What are 'Defined Fields' for in the backend?

Re: search per field

Posté : ven. 20 avr. 2012 23:49
par steevo
Hi,
kbondaren a écrit :2. What are 'Defined Fields' for in the backend?
The defined list can be used when a field have values selectable from a list. You can create several lists and when you create a defined field, you choose the list associated.
kbondaren a écrit :1. How do I create a search per field function. Now the search works on all fields at the same time.
There is no search per field function. In the search area, you can only display search per defined fields (see an example: http://www.steevo.fr/fr/mes-miniatures/nosearch) and the filter field search on all fields.

Why do you need a search per field function?

Re: search per field

Posté : dim. 22 avr. 2012 20:26
par kbondaren
I'd like to have per field search so when someone is looking for a certain value and knows that it is in a particular field he/she gets back search results just from that field. This will narrow the search results to fewer items and make search function more helpful. Per field search is very common feature and I am sure should be easy to implement since you already have search plugin. I do not know PHP enough but I think there must me an easy way to create a search form with every field having a separate search form element.

Re: search per field

Posté : lun. 23 avr. 2012 23:30
par steevo
kbondaren a écrit :Per field search is very common feature
Yes it's common when the values are in an exhaustive list. So that's why "defined" fields are easy filterable.
In version 0.5 for joomla 2.5 only, this will be easy to add a search field for "line" or "text" fields but i don't know that this will be interested for "image" or "file".
For "number" field, i want to make a search system with "greater than x", "lower than x" and "between x and y". That's will be in a next release.

So do you need search per field function for all types of fields ?

Re: search per field

Posté : lun. 23 avr. 2012 23:47
par kbondaren
I have only three "Simple field' text fields for which I'd like to have separate searches. I agree it is not necessary for image fields. It would be great to have it for text fields and number fields.

Re: search per field

Posté : mer. 25 avr. 2012 12:03
par steevo
Ok, I will add that for next release.