Liens vers articles d'une même catégorie

More
11 years 10 months ago #32869 by nexteo
Bonsoir,
Tout d'abord un grand merci à tous les acteurs de ce composant génial et au grand nombre d'explications qui m'ont toujours permis de trouver une solution, alors que ne connais pas grand chose au php.

Ma question est la suivante :
dans le fichier item.php du template blog ou autre, je souhaiterai récupérer la liste de tous les articles appartenant à la même catégorie.
Je peux effectivement l'obtenir en me servant du champ Related Items, mais sachant qu'au final, je vais avoir plus de 100 catégories avec une moyenne de 5 articles chacunes, n'y a t'il pas une procédure plus automatique d'obtenir ce résultat?

Merci d'avance de votre aide

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

More
11 years 10 months ago #32871 by ggppdk
By using translation , i am sure what you are asking, why do you need to edit and customize the template file for item view (item.php) ?

You need to display other items of same category as current item ?
Then it is better to use FLEXIcontent universal Content Module.
There under "Category Scope" Set parameter "Behavior" to be "Items of same 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...

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

More
11 years 10 months ago #32876 by nexteo
Thank you for your help
I get my list of items, but with the scope item filter, the list always ignore the current item...
is it possible to get the complete list ?

Best regards

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

More
11 years 10 months ago #32879 by ggppdk
Hello,

you mean that current item is not included in the list or you say something different?


-- 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 10 months ago #32880 by nexteo
Yes, I mean that current item is not included in the list

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

More
11 years 10 months ago #32881 by ggppdk
There is the ordering and you display n items maybe according to the ordering the current item is not high enough to be included in the first n items


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