I have type Article that refers one user with entity reference.
article1 refers to user1 article2 refers to user1
I want a Rule to show a message on user profile with all the articles that refer to this user. Is it possible without coding?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Finaly i found the solution to this problem using module Views Rules.
I create a view of users, i pass the nid as an integer and set a content referencing to the user.
I don't know if there's a better way but this works fine.
Yes, it's an action called "fetch by property" where you select the entity reference field and provide the uid. That return a list for rules to loop over. You could then display these with a site message.
I think you're looking for views here though. I can't see much benefit from using rules.
Yes, it is possible to perform an action on referenced entities via the drill down syntax
However you are asking to display all the articles referenced by a user and that isn't an action. It is context.
What you are looking for is a views list.