Dear node registration maintainers,

Sorry for bothering. Is it possible for me to include/display the remaining slots for a particular event so that the users know the remaining slots that are available upon registering themselves. Thanks in advance!

Comments

rudiedirkx’s picture

Display 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.

rudiedirkx’s picture

Category: Feature request » Support request

(I don't think it's a feature request. If it is, be more detailed.)

jacktiong92’s picture

Hi 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.

rudiedirkx’s picture

Status: Active » Closed (works as designed)

That'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.

rudiedirkx’s picture

Status: Closed (works as designed) » Closed (fixed)

I'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.