Every member of my site can create groups (OG.) Each group requires a title, an image, and a mission statement. The image Title field is enabled because in some parts of the site, the group images are displayed as thumbnails without the group titles.

However, most users don't bother to fill in the image title field so there is no indication of the group's title or purpose.

The idea here is to have the title of the group show automatically when the mouse cursor hovers above the group image after the group is created.

Any idea on how to accomplish this feast?

  • Do you already have rules installed? Pretty sure that could be an easy solution. – Niall Murphy Feb 29 '16 at 16:43
  • Yes, I have Rules installed. but I can't find the appropriate data selectors after the event "After a group is created." – user14666 Feb 29 '16 at 16:51
  • Added an answer. – Niall Murphy Mar 1 '16 at 14:56

Your event should be after saving new content of type: your group content type. Then add a condition, entity has field: node > your image field. You should then be able add a condition to check if that field is empty.

Your action would then be to set a data value on the image using the node title.

| improve this answer | |
  • That was tricky, but it works well! Thanks. :) – user14666 Mar 2 '16 at 1:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.