Forcer le filtre à la valeur selected.

More
12 years 3 months ago #21334 by kim
Bonjour,

J'emploi un filtre sur mes pages qui est le même pour différentes catégories.
Quand je choisi un item de ce filtre et que je reviens sur cette page, plus tard.
Il garde en mémoire le dernier filtrage choisi.

Comment puis-je forcer la valeur par défaut (all) de mon filtre à chaque fois que je charge la page?

Si vous avez une astuce, je suis preneuse.

Cordialement.

Kim.

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

More
12 years 3 months ago #21337 by ggppdk
Yes, i have thought of this before, the category filters keep their values in sessions variables.

So because of the session variables, if you return to the page the filter values are preserved, this can be annoying if you e.g. re-click on the category link expecting it to display all items.

I think, we could change this behavior without problems in custom templates for v1.5.6 and previous versions.


-- 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
12 years 3 months ago #21339 by kim
Ok i waiting.
I added &filter_23= at hand in my url.

It work fine, but the sef doesn't like.

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

More
12 years 3 months ago #21340 by ggppdk
This will be only a few lines of code, so i will try to post you the svn link with the changes, to update your version, but you should consider upgrading to v1.5.6 final.


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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.273 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