Universal module : Nombre d'éléments en fonction d'un filtre dans un item en relation

More
8 years 4 months ago - 8 years 4 months ago #69676 by id-pop
Bonjour,
J'ai deux types de contenus ("partenaires" et "projets") avec les champs suivants :
- Partenaires :
- Type de partenaire : champ checkbox ("financier", "opérationnel")
- Champ relation inversé "projet"
- Projets :
- Type de projet : champ checkbox (valeurs :" formation", "animation")
- Champ relation "Partenaire"
Je souhaite afficher dans un module la liste des partenaires "financier" présents dans des projets de type "formation".
Comment puis-je faire ? Est-ce possible ?
Merci et bonne journée,
Alexandre
Last edit: 8 years 4 months ago by id-pop.

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

More
8 years 4 months ago #69684 by ggppdk
Hello

yes

Inside TAB "Select items"
- Use "Item scope" to show items related via relation field or via relation-reverse field
- then also use the custom fields scope to limit the above found items to "financier"


-- 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
8 years 4 months ago #69695 by id-pop
It doesn't work as expected.
As I said, I want to display in a module the list of "financial" partners present in projects of the "training" type.
If I use the item scope, I can display the list of the "financial" partners present in all projects but not in "training" type projects.
I had an idea : create three relation fields : one for each type of project. And display the "financiel" partners in all projects related to one specifid relation field. could it solve the issue ?

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

More
8 years 4 months ago - 8 years 4 months ago #69701 by ggppdk
Hello

only try relation field or by relation reverse field, does it work ?

then only try filtering by financial , does it work ?

then try to enable both


-- 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!
Last edit: 8 years 4 months ago by ggppdk.

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

More
8 years 4 months ago #69702 by id-pop
The issue is that I have to filter by "training" too... And training filter is in the related items...

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

More
8 years 4 months ago #69704 by ggppdk
Hello

i see
then you might want to add the field "training" / "animation" to the other type too

i know that the above is duplicating information,

other option is to create 2 related fields
"Relation for training"
"Relation for animation"


-- 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
8 years 4 months ago #69716 by id-pop
Hi,
I have configured a universal content module :
1- "item type" as "partners" => it displays only the partners
2- "custom fields scope" with id_field_partner##value_for_financial%% =>it displays only the "financial partners"
I have tried multiple solutions to "filter" by relation field or inverse relation field but nothing works :
1- item scope "relation field" include "relation for training"
2- item scope "relation field" include "reverse relation for training"
3- I have added in "custom fields scope" id_relation_for_training#1---1000000%% (to show all related item iD's)
4- I have added in "custom fields scope" id_reverse_relation_for_training#1---1000000%% (to show all related item iD's)
Do you have any idea ?
Thanks a lot or your help,

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

More
8 years 4 months ago #69769 by ggppdk
Hello

the problem is that you would want to apply filtering extra filtering into the reverse related items AAA

using a field that is not of the items !

you want to filter using a field of the item BBB that refers to them as related

did you try my suggestion, to create a new field that will duplicate the field from item BBB into items AAA ?


-- 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
8 years 4 months ago #69772 by id-pop
I have tried multiple solution but I didn't find a solution. So I have send you a PM...

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

More
8 years 3 months ago #70153 by ggppdk
Hello

please see the PM i have sent you


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

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