search per field

Si vous avez des questions sur le fonctionnement du composant
kbondaren
Messages : 4
Enregistré le : ven. 20 avr. 2012 22:40

search per field

Message 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?

Avatar du membre
steevo
Administrateur du site
Messages : 330
Enregistré le : jeu. 17 déc. 2009 22:59
Contact :

Re: search per field

Message 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?

kbondaren
Messages : 4
Enregistré le : ven. 20 avr. 2012 22:40

Re: search per field

Message 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.

Avatar du membre
steevo
Administrateur du site
Messages : 330
Enregistré le : jeu. 17 déc. 2009 22:59
Contact :

Re: search per field

Message 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 ?

kbondaren
Messages : 4
Enregistré le : ven. 20 avr. 2012 22:40

Re: search per field

Message 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.

Avatar du membre
steevo
Administrateur du site
Messages : 330
Enregistré le : jeu. 17 déc. 2009 22:59
Contact :

Re: search per field

Message par steevo »

Ok, I will add that for next release.

Répondre