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

More
13 years 3 weeks 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
13 years 3 weeks 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 review. Thanks!

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

More
13 years 3 weeks 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
13 years 3 weeks 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 review. Thanks!

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

More
13 years 3 weeks 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
13 years 3 weeks 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 review. Thanks!

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

More
13 years 3 weeks ago #32883 by nexteo
My parameters are :
- method item scope = all
- behaviour = static
- fetching method = number of items and featured are very important

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

More
13 years 3 weeks ago #32884 by ggppdk
Hello

ggppdk wrote: There under "Category Scope" Set parameter "Behaviour" to be "Items of same category"


Please
-- set all SCOPEs to "ALL" and behaviour static and
-- do in category SCOPE:
behaviour must not be static but "Items in same 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 review. Thanks!

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

More
13 years 3 weeks ago #32886 by nexteo
Hello
Thanks a lot
Everything is ok now
the problem was that all the parameters were not set on all (types and author)

Best regards

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