Closed (fixed)
Project:
Node registration
Version:
7.x-1.13
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2014 at 10:39 UTC
Updated:
15 Jan 2014 at 16:10 UTC
Jump to comment: Most recent
Comments
Comment #1
rudiedirkx commentedDisplay where? There's a Views field that does this:
Available slots. There's also a helper function you can use in custom code:node_registration_event_count($node)(consumed/taken) and$node->registration->capacity()(total allowed).If it's in a list, use the Views field. If it's somewhere custom, alter or theme that part and add the count using those helper functions.
Comment #2
rudiedirkx commented(I don't think it's a feature request. If it is, be more detailed.)
Comment #3
jacktiong92 commentedHi sir! Thank you for your quick response. First of all, I've created a content type called "Event" and I have enabled the node registration for the "Event" content type that I have created. If possible I would like to display the remaining slots/capacity for the event on top of the Event page that I have created or on top of the registration form so that the user will be aware of the remaining slots once they click the event post or the registration form. Is that possible? Thanks again in advance.
Comment #4
rudiedirkx commentedThat's what I said in #1. You're gonna need custom code with the functions I mentioned. Do research, look at the module. I suggest field_extra_fields. If you do, prefix it with your module name, because I might add it to NR some day.
Comment #5
rudiedirkx commentedI've added an extra field that does just this: http://drupalcode.org/project/node_registration.git/commitdiff/f82fac8
It's only in dev, so use that. or patch your version with the above patch. I don't know when there'll be a new release.