Problème de catégories dans le module universel

More
11 years 7 months ago #30454 by carolineCSH
Bonjour !

Désolée par avance si le problème a déjà été abordé, j'ai un petit problème d'affichage au niveau du module de flexicontent.

Je m'explique, j'ai une catégorie principale "Publications" et en sous catégories "Occasionnal Papers", "Reports" et "Other Articles".

J'ai bien assigné mes articles dans les bonnes catégories, mais lorsque dans le module je sélectionne ces 3 catégories, ce sont uniquement les articles de la première catégorie qui s'affichent dans chacune d'entre elles :
[img

alors que le lien "see the complete list" renvoie bien vers la bonne catégorie avec les articles correspondant.

Une vue du Scope de mon module :
[img


Voilà, je tourne un peu en rond, donc si vous avez une idée...

Merci !

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

More
11 years 7 months ago #30459 by kursus
Salut,

A quelles catégories exactement sont assignées les deux articles que l'on voit sur la capture ?

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

More
11 years 7 months ago #30471 by ggppdk
The same Database query string is used to query every category selected when module is set to apply configuration per category,

-- but the loop destroys is after first execution, anyway , i will not go into more details

In module helper file:
modules/mod_flexicontent/helper.php
Replace (about line 1237)
Code:
foreach($multiquery_cats as $cat_where) { $query = str_replace('__CID_WHERE__', $cat_where, $query); $db->setQuery($query, 0, $count);
with
Code:
foreach($multiquery_cats as $cat_where) { $per_cat_query = str_replace('__CID_WHERE__', $cat_where, $query); $db->setQuery($per_cat_query, 0, $count);

Thanks for reporting


-- 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 #30505 by carolineCSH
Perfect it's working !
Thanks a lot :)

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

More
11 years 7 months ago #30506 by ggppdk
Ok, thanks for verifying fix :-)


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