Affichage Universal Content Module suivant la catégorie

More
11 years 5 months ago #37415 by seabird
Hello,

I have 100 categories. In the category view, I want the module displays the items in the category. And when I'm in an item in a category, I want the module displays items in this category.
So, I set Scope Category: Items in the same category. This works well when I'm in a item's category ( the module displays the items in this category, it's OK).
But if I am on the category, the module is empty ???

Eric

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

More
11 years 5 months ago #37417 by ggppdk
Hello,
yes when current (flexicontent) component) view is a category view, the category itself displays items ... and the module does not display items from current category (of component category view)

we did not add a scope for this or a parameter option in "behavior" parameter of category view, because we did not see the usefulness of it,

i guess there cases/scenario that you would want this, e.g. to display the most popular items of current category ??


-- 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 5 months ago #37420 by seabird
Hello,

Yes I would like this scenario because in the view category there is items that are filtered by a particular field.
And in the module, I need the other items that do not have this field.

Is there a possibility to do this simply ?

Eric

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

More
11 years 5 months ago #37436 by seabird
Bonjour,

Bon pour essayer de répondre momentanément à mon problème, j'ai du modifier un peu le fichier module/mod_flexicontent/helper.php ( je sais ce n'est pas une bonne idée :? .
J'ai mis en commentaire vers la ligne 894:
Code:
/*if ( !$isflexi_itemview ) { return; // current view is not item view ... , nothing to display }*/

Puis j'ai rajouté vers la ligne 905: $cid = JRequest::getInt('cid') au dessus de:
$cid = $cid ? $cid : $curitem->catid;
Code:
$cid = JRequest::getInt('cid'); $cid = $cid ? $cid : $curitem->catid;

Maitenant j'ai les articles dans mon module, lorsque je suis dans la vue catégorie.

Eric

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

More
11 years 5 months ago #37448 by micker
pas mal ... a voir si y a mieux du coté de georgios

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