Filtres et affichage [Résolu]

More
13 years 2 weeks ago - 13 years 1 week ago #20258 by kim
Bonjour,

J'ai un champs select qui j'utilise en menu filtrant.
Est-ce qu'il est possible d'afficher dans la page, l'item choisi de la liste déroulante?

Ex: dans mon menu région, je filtre par une région (alsace), et en dessous du titre, je voudrais afficher alsace, une fois que le filtrage a été effectué.

Kim.
Last edit: 13 years 1 week ago by kim.

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

More
13 years 2 weeks ago #20286 by ggppdk
I don't understand your question, You want to filter which page (a category view?) , by a filter displayed where?


-- 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
13 years 1 week ago #20319 by kim
Replied by kim on topic Filtres et affichage [Résolu]
Ok, i'll try to explain my desire...

I had a select list, for example:
select a beer:
- belgium
- german
- greece (it's impossible, but for fun)

I had a title category: Beer

When un select the filter belgium, i would like display belgium before my title and obtain in my title "Belgium Beer".

With alcool, all is clear? :)

Kim.

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

More
13 years 1 week ago #20322 by yopyop001
Salut Kim,

ça faisait longtemps...

Tu peux récupérer dans le fichier category.php de ton template la valeur :
Code:
$filter_value = JRequest::getVar('filter_id');
où filter_id est l'id du filtre
Tu peux alors l'afficher où tu veux.
Cependant cela récupère la valeur du filtre, donc il faut que ton select ou checkbox soit de la forme :
Belgium::Belgium%% German::German et pas 1::Belgium%% 2::German

A bientôt

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

More
13 years 1 week ago #20324 by kim
Replied by kim on topic Filtres et affichage [Résolu]
Ok compris, merci bien YopYop :)

Un autre petit soucis à la con,

Je voudrais récupérer le titre de la catégorie parent.

Pour le moment, j'arrive à afficher l'id de la catégorie parent.
<?php echo $this->category->parent_id; ?>

Comment je peux l'avoir en texte?

Merci si tu sais.

Kim.

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

More
13 years 1 week ago #20325 by ggppdk
See this POST: for outputing the title and/or adding a link to
www.flexicontent.org/forum/index ... pic#p20205

Please note that before using $globalcats you need:
<?php global $globalcats; ?>

Regards


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