I am trying to properly configure this module, and making slow progress. The documentation page is helpful but I still have questions. How does one use the "Signup restrictions field"? The only explanation I can see is the line below the field which reads, "Field should use key/value pairs where the key is the field name that is attached to the sign-up node." I have no clue what that means. Can someone give an example please?

Comments

jhedstrom’s picture

The signup restriction functionality may need some work. It is in place currently to support the concept of group signups (signing up more than one person for a shift). It works as follows:

On the event node type, a multi-select cck text field is created, with, for example, the following allowed values, labeling this field something like 'Signup restrictions':

field_restriction_example_1|Number of people with blue shoes
field_restriction_example_2|Number of people with green hair

then, on the signup node type, add numeric fields with machine names identical to the key in the above allowed values:

field_restriction_example_1 (and make a sensible lable, like "Number of people with blue shoes").
field_restriction_example_2 (label of 'Number of people with green hair').

Now, when an administrator or privileged user goes to create an event, they will be able to restrict signups to people with green hair by checking the checkbox. What happens when they do this is that on signup if the attendee enters a value other than 0 into the numeric people with green hair field, the cck signup restriction will throw a form error.

For a working example, take a look at the shift_restriction feature here.

twowheeler’s picture

Ok thanks for a quick response. Sounds like this is overkill for my use case. All I really need to do is to have a field on the signup for entering the number of people planning to attend the event, and be able to show the total of that field to the admin user. So I added a Number of Reservations field to the signup, and added the total to the view using Views Calc. The maximum capacity has never been an issue (heh, we wish) so the restriction is not a big deal.

Is the signup supposed to automatically change status to closed once the end time of the event is passed? In my testing it remains open even though the event is in the past.

jhedstrom’s picture

For that use-case, you can use the CCK Signup Group module, and not worry about the Restrictions module. The group signup module takes into account the group capacity during signup validation.

jhedstrom’s picture

Also, regarding the status, there is nothing in place at this time that would automatically change the status, although there is code in place to prevent signups to past events.

twowheeler’s picture

Well, as a work around until you are ready to implement the feature here, folks could use the Rules module. Probably it would just take a simple rule saying that when the ending date field in this content type is in the past, then set the Status field to zero. Or something. I will try it out.
Thanks.

jhedstrom’s picture

Status: Active » Fixed

Closing for now. Please re-open if you have further questions around this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.