utilisation des filtres

More
11 years 7 months ago #35441 by tonnick
Hello

Si j'ai bien saisi, les filtres sont "independants" du champ de recherche. C'est à dire que si on ne met rien dans le champ de recherche, les filtres s'appliquent quand meme.

Mais si je met un texte dans le champ de recherche, il est pris en compte par le filtre.

Serait-il possible de n'activer que les filtres qu'une fois le bouton "search" d'activer ?

Si un visiteur cherche un item, il lui faut appliquer les filtres un par un sur sa recherche. ne serait-il pas plus simple de taper sa recherche, appliquer les filtres, et clicquer sur ok pour tout prendre en compte d'un coup ?

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #35445 by micker
Replied by micker on topic utilisation des filtres
Hello pour qu un champ soit filtrable il le lui specifier
Apres tu peu l afficher dans ta vue categorie tu peus aussi lui dire que si aucune valeur na ete mis dans le champs alors pas de filtre
APrès les filtres fonctionnent en direct
Tu choisis une valeur et hop ca marche..

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #35454 by ggppdk
Replied by ggppdk on topic utilisation des filtres
You speak of a new parameter to:
to disable automatic form submission (user must click apply)?

it is possible
e.g. range filters do not submit form automatically


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #35457 by tonnick
Replied by tonnick on topic utilisation des filtres
yes ggppkd, this is exactly what is about !

can we have option do disable automatic submission, and apply filters to search only clicking on search ?

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #35458 by ggppdk
Replied by ggppdk on topic utilisation des filtres
-- We wanted to add this parameter,
when implementing new filtering system, but it was never added ... at the time

I have added it now (parameter: disable filter auto submit).
-- REMEMBER to set the parameter in global configuration on next release

You can apply and test the change now:
so edit:
components/com_flexicontent/tmpl_common/listings_filter_form_body.php
and
components/com_flexicontent/tmpl_common/listings_filter_form_body_html5.php

And replace: (carefully)
Code:
$filt->html = preg_replace('/onchange[ ]*=[ ]*([\'"])/i', 'onchange=${1}adminFormPrepare(document.getElementById(\'adminForm\')); ', $filt->html);
with:
Code:
if ( $this->params->get('disable_filter_autosubmit', 1) ) $filt->html = preg_replace('/onchange[ ]*=[ ]*([\'"])/i', '', $filt->html); else $filt->html = preg_replace('/onchange[ ]*=[ ]*([\'"])/i', 'onchange=${1}adminFormPrepare(document.getElementById(\'adminForm\')); ', $filt->html);


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #35571 by tonnick
Replied by tonnick on topic utilisation des filtres
ok it works like a charm !!!!

It will be clearer for most of visitor to apply filters only on a search terms in my case !

usefull function !

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.417 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline