Filtres et affichage [Résolu]

More
14 years 3 months ago - 14 years 2 months 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: 14 years 2 months ago by kim.

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

More
14 years 3 months 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 review. Thanks!

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

More
14 years 3 months 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
14 years 3 months 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
14 years 3 months 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
14 years 3 months 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 review. Thanks!

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

More
14 years 2 months ago #20422 by kim
Replied by kim on topic Filtres et affichage [Résolu]
J'ai essayé le bout de code, mais c'est pas ca que je veux...

En fait je voudrais afficher le nom de la catégorie, le nom de la sous catégorie et ses articles.
Je sais pas si je suis claire...

Plutot la catégorie parent, le nom de la catégorie et ses articles.

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

More
14 years 2 months ago #20430 by ggppdk
I am not sure what you want , you can try the 'faq' template (FC v1.5.6 * v2.0).

The faq template in category view it groups items per sub-category.

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 review. Thanks!

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

More
14 years 2 months ago #20442 by kim
Replied by kim on topic Filtres et affichage [Résolu]
Hello,

look this url, maybe you understand better.

88.190.216.161/index.php?option=com_flex...anevrismes&Itemid=57

153 is the id of the category parent.

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

More
14 years 2 months ago #20457 by ggppdk
Yes, but what you want to do?
because i cannot understand from the translation ...


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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
Save