Active
Project:
CCK Signup
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2012 at 21:11 UTC
Updated:
30 Jan 2013 at 01:24 UTC
How do I set the event capacity?
Ideally, I would like users to be able to enter a number "number of attendees" and have his count against the total event capacity.
Also, how do I display the total number of attendees signed up for an event?
Comments
Comment #1
pene commentedGo to /admin/structure/types/manage/event/fields and there you have to set up a new variable (type: number, widget type: text). My variable's full name for the system is field_event_capacity (important for the below section). If you need it, use mandatory variable.
There you go, a displaying method:
If you are user #1: Get Views PHP module, install, enable.
Go in to your calendar, week etc. view.
Add a PHP field into Fields part.
To the Output code section, insert something like this: