search per field

Si vous avez des questions sur le fonctionnement du composant

par kbondaren » Ven 20 Avr 2012 22:45

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?
kbondaren
 
Messages: 4
Inscription: Ven 20 Avr 2012 22:40

par steevo » Ven 20 Avr 2012 23:49

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?
Avatar de l’utilisateur
steevo
Administrateur du site
 
Messages: 330
Inscription: Jeu 17 Déc 2009 22:59

par kbondaren » Dim 22 Avr 2012 20:26

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.
kbondaren
 
Messages: 4
Inscription: Ven 20 Avr 2012 22:40

par steevo » Lun 23 Avr 2012 23:30

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 ?
Avatar de l’utilisateur
steevo
Administrateur du site
 
Messages: 330
Inscription: Jeu 17 Déc 2009 22:59

par kbondaren » Lun 23 Avr 2012 23:47

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.
kbondaren
 
Messages: 4
Inscription: Ven 20 Avr 2012 22:40

par steevo » Mer 25 Avr 2012 12:03

Ok, I will add that for next release.
Avatar de l’utilisateur
steevo
Administrateur du site
 
Messages: 330
Inscription: Jeu 17 Déc 2009 22:59


Retourner vers Questions diverses

cron

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité