Hi

Just to be open I have also posted this request on the flagging module page.

Here:https://drupal.org/node/2225247

But I thought I'd see any one here can help. Apologies for the duplication, but I'm really stuck!

My situation is this:

- Users are members of multiple groups.

- Users always start on a page showing all their groups.

- Click one and are taken to the group page.

- They then navigate through different nodes via group menu.

- Using tokens the group menu spends the group ID to the URL as the final argument on the URL.

- This in turn populates a field on the users profile page called "current group". The current group the user is tapped into as it where.

- While the user is in the "current group" they can flag nodes using a like flag

- I have attached an entity reference field via the flagging module to this flag - It is multiple value, autocompelte tag style.

- Using rules I have got it to be populated via the data from the "current group" field on the user page every time it is used.

- Users can flag the same nodes but while in different "current groups"

- In that way each flagging for a node would have a list of groups to which that nodes was liked for….[hope that makes sense] That way I can create views of nodes flagged for that group.

- To allow for multiple flaggings of the same node I have created x2 flags

- One a flagging Flag and another an unflag Flag.

- Using rules the flagging Flag is set to automatically flag the unflag Flag and then, immediately unflag itself.

- Using rules, the unflag Flag is set to pull in the data from the "current group" field on the user page to populate the entity ref of the flagging.

- This works fine for a single value

MY ISSUE

- The issue I am having is in adding more than one value to the flagging entity ref field.

- The rules command for one is pretty straight forward, the unflag Flag is flagged and the ref field is populated. Boom.

- The tricky part comes when you want to add another value to that field.

- I need help in putting together a rule that will fire when the FIRST flag is flagged and then add the variable to the second flags entity ref field.

- This rule will need to pull in the data into the ref field on the second flag, keeping it flagged and providing a list of data useful to my view.

- My problem is in writing that rule.

- I can't seem to be able to get the selector to get to the entity ref field on my second flag in order to "add an item to the list"

**** CAN ANYONE HELP ME WITH THIS?? ****

Many thanks!

P

Comments

milenpat’s picture

Title: Add an time to a list on a flagging entity ref field » Add an item to a list on a flagging entity ref field