Closed (works as designed)
Project:
Resource Conflict
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2012 at 17:33 UTC
Updated:
8 Feb 2013 at 18:16 UTC
I created a calendar 7.x-3.4. Users can add events using a content type. Content type has a mandatory term reference field. I want to check conflict between date field belong the same taxonomy term: may I use resource conflict module?
thanks
Comments
Comment #1
ohthehugemanatee commentedyes you can. This is very easy with the 7.x version of the module.
Install, and edit the rule that comes with the module to check the taxonomy field in the "conditions" section.
Comment #2
Miao1994 commentedGreat, I'll try it as soon as possible.
Thanks for your quick response.
Comment #3
liberatrCurrently trying to understand how one would really do this - are the conflicted nodes available in the "Conditions" area?
The only node I have in data selector is "unsaved node".
I understand that the node being validated is there, but what about the others? Is this module complete? If so, can you upload an export of a working rule?
Thanks for an awesome module, BTW.
Comment #4
liberatrAnswering my own question: based on a comment on #1637570: Booking rooms for events for Drupal 7
This assumes you have a taxonomy field called field_places on the node type you're checking for conflicts.
The main Rule is modified from the default to fire a Rules Componenet instead of the Validation error.
Here is the Rule:
Here is the Rules Component (type Rule):
I am hoping to write this up in the handbook later, but this is what worked for me.
Comment #5
gcaudle commentedWorking on this now - liberatr, did you get this into a handbook somewhere? I'm desperately trying to find a solution to check for conflicts by venue. I tried to import your example, but I get error messages I don't really understand yet. I've got a content type called event, and a taxonomy field called spacerequested. Any advice you could give on this would be greatly appreciated.