To start I wanted to say that this is a fantastic module that is very well written, thank-you!

I use panels a lot when developing sites, and in order to use this module I needed to add a few panels plugins:

1. node_form_registration_status: to add the registration status form element to the node edit panel page;
2. node_registration_cancel: to provide a cancel link on a node view page
3. registration status: an access plugin used to make pane visible / invisible depending on whether the user is registered to the node

With these I can enable registrations on the node form, then hide the register link when a user is registered and replace it with a cancel link on node view.

I thought I would share these plugins in the form of a patch in case you or anyone else is interested. Cheers.

CommentFileSizeAuthor
node_registration-panels.patch6.53 KBjoel_osc

Comments

rudiedirkx’s picture

I know nothing of Panels, so if you don't mind I won't add it to NR, but we'll keep this issue open so people can see there's a Panels patch. I'll also mention this on the project page. Agree?

joel_osc’s picture

Sounds good, if I add any more to it I will create a sandbox project and post the link here. Cheers.

rudiedirkx’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)
jemisond’s picture

I applied the patch, but am unable to get the cancel link to display on the page. I confirmed that the user does have the permission to cancel the event.

rudiedirkx’s picture

I don't know anything about Panels or what this patch adds.

These might be useful though:

Short version: NR doesn't make a cancel link. You have to do that.

joel_osc’s picture

If you are using panels and have added the 'registration cancel link' to the node_view override, you can test whether or not the render is being called by putting a dpm in the 'node_registration_registration_cancel_content_type_render' function.

joel_osc’s picture

deleted repeat comment...sorry internet connection is not great.

joel_osc’s picture

deleted repeat comment...sorry internet connection is not great.