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

More
6 years 6 months ago - 6 years 6 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: 6 years 6 months ago by id-pop.

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

More
6 years 6 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...

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

More
6 years 6 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
6 years 6 months ago - 6 years 6 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...
Last edit: 6 years 6 months ago by ggppdk.

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

More
6 years 6 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
6 years 6 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.283 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