Récupérer les sous catégories de la catégorie parent

More
12 years 9 months ago #17292 by flashfred
J'ai une catégorie "Actualités" dans laquelle se trouvent plusieurs sous catégories.
J'affiche tous les articles dans la catégorie "Actualités", et j'aimerais pouvoir filtrer les sous catégories. Je construis donc mon menu de sous-catéries avec $this->categories.
Le problème survient lorsque je suis sur une sous-catégorie. Il faudrait que je puisse récupérer les sous-catégories du parent ("Actualités"). Y a-t-il une solution ?

J'espère avoir été clair :?

Merci d'avance.

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

More
12 years 9 months ago #17336 by ggppdk
You can,
you want just the ids of the categories, or you want to know how to create links to them?

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.

More
12 years 9 months ago #17365 by flashfred
Merci pour la réponse,

J'ai en effet fini par récupérer les sous-catégories du parent avec :
Code:
$globalcats[$this->category->parent_id]->childrenarray;
En revanche, je n'arrive pas à récupérer le nombre d'articles dans chacune des sous-catégories.

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

More
12 years 9 months ago #17402 by ggppdk
You can use
$globalcats[$this->category->parent_id]->childrenarray;

to make query database to get the info you need, you need help doing the query?
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.

More
12 years 9 months ago #17418 by micker
Hello fait une recherche dans les post de rehee
Si je me souvien bien il avait fait un template de ce type
Il y a un moment
A plus

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.

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