This tutorial describes how to set up a calendar of upcoming events with the option of signing up for events.
Creating Calendar of upcoming events
You will need following modules:
CCK
Views
Date
Calendar
To begin:
- Download and install listed modules.
- Create new content type "Event" by navigating to Administer > Content managment > Content types > Add content type (or
http://example.com/admin/content/types/add
) with the following fields:- Name : Event
- Type : event
- Save the new content type
- Add a date field to the Event content type:
- Go to the Content types administration page (Administer > Content management > Content types or
http://example.com/admin/content/types/
) and click the "Manage fields" link next to the Event content type. - Add new field with next data:
- Label: Event date and time
- Field name: event_datetime
- Field type: Datetime
- Widget type: Select list with repeat options (or some other if you prefer)
- Save the field. On the next page you will see more detailed settings for the field. Choose which ever options suit your site.
- Go to the Content types administration page (Administer > Content management > Content types or
- Configure calendar view:
- Go to the Views administration page (Administer > Site building > Views or
http://example.com/admin/build/views
). - Find node view "calendar". Enable it if it is disabled.
- Press edit and configure calendar view in this way:
- Fields:
- Node: Title
- Content: Event date and time
- All other fields which you would like to display on the calendar for you event.
- Arguments:
- "Date: Date (node)"
- In the settings find "Date field(s)" and make sure only one is checked their "Content: Event date and time (field_event_datetime). It is the date field we created earlier.
- Filters:
- "Node: Published" - set filter option to Yes
- "Node: Type" - set filter option to "is one of" "Event".
- Sort criteria:
- Node: Updated time. Sort order ascending.
- Content: Event date and time. Sort order ascending.
- Fields:
- Go to the Views administration page (Administer > Site building > Views or
Setting up sign-ups for events
You will need following modules:
CCK Signup
Views attach
Node Reference URL Widget
- Download and install listed modules. (Note: CCK Signup will require CCK module, in particular you need to have Node reference enabled.)
- Create a new content type "Signup" by navigating to Administer > Content managment > Content types > Add content type (or
http://example.com/admin/content/types/add
):- Name : Signup
- Type : signup
Choose all other settings, depending on what kind of signups you need. For instance it is useful to omit body field label.
- Add the event reference field to Signup content type:
- Go to the Content types administration page (Administer > Content management > Content types or
http://example.com/admin/content/types/
) and click the "Manage fields" link next to the SIgnup content type. - Add new field with next data:
- Label: Signup for event
- Field name: eventref
- Field type: Node reference
- Widget type: Reference from URL
- On the next page you will see more detailed settings for the field.
- At the bottom of the page find "Content types that can be referenced:" and make sure Event content type (the one we created earlier) is checked.
- The rest of the settings configure how you think is best for your site. For example it could be something like:
- Fallback behavior: Display page not found error.
- Referenceable node links: Create link on the full view
- Link title: Signup for event
- Return path: The referenced node
- Go to the Content types administration page (Administer > Content management > Content types or
- Setup signups for Event content type:
- Go to the Content types administration page (Administer > Content management > Content types or
http://example.com/admin/content/types
) and edit your Event content type. - In the settings you will see new section "CCK Sign-up":
- Enable Sign-ups for event nodes.
- "Node reference field to associate sign-up nodes" set to "Signup for event". (Event reference field you created earlier)
- "Date field to associate with sign-ups:" set to "Event date and time". (Date field you created earlier)
- Go to the Content types administration page (Administer > Content management > Content types or
- Check user permissions for the content types and fields which you created:
- Go to the Permissions administration page (Administer > User management > Permissions or
http://example.com/admin/user/permissions
). - In content_permissions module "Edit field_event_datetime" should be checked for those users which you want to be able to add new events.
- "Edit field_eventref" should be checked for those users which you want to be able to sign up.
- In node module check permissions for event and signup content. Specify which users can create/edit/delete these content types.
- Don't forget to configure other node-related modules you are using. Such as Path auto, Node access etc.
- Go to the Permissions administration page (Administer > User management > Permissions or
- Create view to display list of signups on the event page:
- Go to the Views administration page (Administer > Site building > Views or
http://example.com/admin/build/views
). - Press Add
- View name: signup_list
- View type: Node
- On the next page configure options as follows:
- Fields. As fields choose all the information you want to show. For example user name (author of signup), custom fields of Signup content type, some fields from user profile etc. To make signups' management easier you can also add Node: Edit link and Node: Delete link fields.
- Filters:
- Node: Type. Filter options set to "is one of" "Signup".
- Arguments:
- Content: Sign-up for event (field_eventref).
- Finally at the top left drop-down menu choose "Node content" and press add display (if you don't see Node content option - make sure module Views attach is enabled).
- You will see new view "Node content" appeared under Defaults. Choose this view and in its settings find section "Node content settings". Set Node types: event.
Note: Node field Title is required for all nodes, including signup. If you don't want your users to fill this field, you can use Automatic Nodetitles module, which will automatically create node titles and hide them from users.
- Go to the Views administration page (Administer > Site building > Views or
Comments
Count
This is great but how do I get a count of signups? I've also added a field for food choice. Is there a way to tally the results?
Thanks so much!
You could probably try this
You could probably try this module http://drupal.org/project/nodereference_count
views_calc
I'm using views calc for this: http://drupal.org/project/views_calc
How to Move Inline Links
The view for the signup list can get very long. It is between the event detail and the inline links that include the link for Signing up, which is followed by comments. This buries the signup link and I would like to make it more prominent. How do I move the inline links to the top?
Only thing that comes to mind
Only thing that comes to mind - edit tpl.php file for event node type and place links above node content. But then links will be on the very top, even above event details.
Nodereference URL
This tutorial should also mention that it requires the Nodereference URL module to be installed.
added it, thanks!
added it, thanks!
CCK Signup Group Confirmation Documentation ??
Hello,
I am looking for a tutorial or a documentation for CCK Signup Group Confirmation module
also, the CCK Signup Restrictions module needs to have a documentation.
Any effort in this will be highly appreciated!
Is there any tutorials for
Is there any tutorials for this under Drupal 7? Some of the above required modules are not available for Drupal 7
subscribe
subscribe
Can't see signup link
Hi all,
I have done the setup (using 6.x-1.0-beta2) as mentioned here and have double check the settings and permissions but can't see any "Signup" link on Event page for signup. Shouldn't there be a link? Am i missing something?
It will be really helpful if something regarding this is mentioned here as well.
There should be a link if you
There should be a link if you followed:
There should be a link on the full view of Event nodes. It should be located near "Add new comment" link and have a title which you specify in "Link title".
It was not there
Well the settings are OK and have been done like you mentioned here. The link should show up when "Referenceable node links: Create link on the full view" is set. But the link was not there. I also have disabled the comment module as it was not needed and have added the link to node.tpl.php manually. This is working for me for now. I have also reported the issue on project page but no response yet.
Please also add some documentation for group signup management.
Unfortunately I know nothing
Unfortunately I know nothing about group signups, haven't used them yet.
Own CCK node types VS 'CCK Signup Basic' modules node types
I tried to do my own CCK types and later removed them and installed 'CCK Signup Basic' that creates CCK types with same name that I created at the first step. It didn't work. On a clean install of 'CCK Signup Basic' it works and also if you do your own CCK types with Nodereference widget.
Anonymous Sign ups
Hi,
I'm trying to setup sign-ups so that anonymous users can sign up to an event while specifying how many people they are bringing.
Everything seems to be setup correctly, but only logged in users can sign up for an event. When logging off, I cannot get the link to the signup! Under content_permissions, I've allowed anonymous users edit and view the specific fields.
I need to have visitors put their name and attendee counts to specific events.
Any help with this will be greartly appreciated.
Thank you.
Client Requires this Feature
I have a client who requires this feature now, and in Drupal 7. Any way this tutorial can be updated for D7 and include signups for anonymous users?
Many thanks.
D7 Tuto
Yes please, try to cook the tutorial for D7 version
Thanks
@ch
Need to signup link for public user for any event in druapl 7
Hi,
I need sign up link for public user in drupal 7 . However signup link is showing fine for admin user and able to comment in event for any event. But public users are not able to see signup link and not able to reply on event.
Pls help me.
Thanks in advance.
Thanks,
Vinod
CCK Signup and views list with signups & Notifications 2.x DEV
a list in views with a signup button after every class... finally went the route of installing views php to concatenate the stuff together - after adding the fields Node: NID and Node: Path to the view (excluding them from the view for prettiness...)
">Sign Up
Also - the only version of Notifications I can get to work with cck signup notifications is Notifications 2.x DEV - everything else throws an error....
and there it goes... really simple thanks to it being a fairly simple and straightforward module - thanks jhedstrom & best with the rules integration... it's a good call
How to show capacity remaining for event
This may be overkill for some people, but it was exactly what I needed, and once I figured out, it seemed simple enough to repeat. We are using this with anonymous signups (permissions, create signups - anonymous users / no permission to edit or delete signups). They have to sign up individually for each person, but most families are only signing up 1-3 people for events. Site can be viewed through the end of 2011 at cms.peacekaat.com
1. Install and enable the nodereference count module http://drupal.org/project/nodereference_count
2. Install and enable the computed field module http://drupal.org/project/computed_field
3. Manage fields and add a nodereference count field to your event content type, Label it 'Signup Count' and give it a field name of 'refcount' (It's function is to count the nodes that are referencing this node, or the number of signups referencing this event.) Select the nodereference field for it to count (field_eventref).
4. Add a computed field to event, Label it 'Capacity Remaining' and give it a field name of 'computed'.
5. Configure your computed field. In the area marked "Computed Code" enter the following formula:
$node_field[0]['value'] = ($node->field_eventcapacity[0]['value'] - $node->field_refcount[0]['value']) ;
6. In the area marked 'Display Format' leave it alone, or make sure it reads:
$display = $node_field_item['value'];
7. Still in the computed field configuration: DO NOT Store for database. (If you do, you will have to resave the node every time you want the computation to update. Not saving it allows it to tick down as intended.) Save settings.
8. Display fields for event: Change Event Capacity and Signup Count labels and output to hidden. Set your Capacity Remaining label however you would like (I chose inline) and set your display value to Raw Text.
9. When you arrange your fields, make sure they are in this order: Event Capacity, then Signup Count, then Capacity Remaining.
Now when you post an event with signups, it will show event capacity remaining :)
Help!
This is great! Just what I was looking for BUT how do we set the "Event Capacity" .. that's the third one you didn't touch on and then you mention their order... hmm
Per Job?
Thanks for this addition - it's just what I was hoping to address on my draft site!
I've created a field that allows volunteers to select particular jobs to perform at an event (e.g., usher, ticket sales) - is there a way to tailor this approach to take into account capacity per job?
Thanks again!
Al
Drupal 7 tutorial
I found this somewhat more up to date tutorial on how to use CCK Signup.
http://drupal.org/node/1479460
I also found this module.
I also found this module. This looks to be flexible and might work
http://drupal.org/project/registration
Loving this
Thanks for the Drupal 7 revision!
How to disable registration button once event completed?
Hi All,
This is a great tutorial. And actually my requirement is when event is finished or date exceeds to event date then event registration button should be automatically disable. Can anyone help me in this?.
Thanks Inadvance...