Closed (outdated)
Project:
Entity Registration
Version:
7.x-1.x-dev
Component:
Registration Views
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2012 at 23:16 UTC
Updated:
11 Jun 2023 at 16:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dpiI was thinking a views bulk operations view ala Organic Groups 2.x, if the module is available.
Although we need a few more views fields to be added.
Comment #2
lsolesen commentedI do not know how to get the view into the code, so here is an export of my view. And I have attached a patch which replaces registration_registrations_page() to using views instead.
Comment #3
lsolesen commentedComment #4
lsolesen commentedComment #5
levelos commentedThanks @lsolesen, but we very intentionally did not make this module dependent on Views. If you want to override the default display with a custom view, that easy to do and your prerogative.
Comment #6
dpiI'll bring back my example of Organic Groups, they have no dependencies on Views Bulk Operations (VBO). Like Registrations implementation of the 'Devel' tab on registration entities, there is no dependencies, its just there if you have it.
Registration provides Views functionality if you have it, but its not a dependency.
If you don't have VBO, then default to a generated table.
I'm willing to work on this, as its on my to do list as well. I need to bulk set an 'availability' or 'attended' field.
Comment #7
lsolesen commented@levelos Why did you choose not to make it dependent on views? - and how would you override the default behavior, if you won't use views?
Comment #8
mstef commentedI planned to override the page callback to inject a view, so I don't care if that becomes a function of the module, but VBO support would be great.
Comment #9
babbage commentedI understand the point made by levelos and it is a reasonable decision to not make the module dependent on Views.
What would be great however, and I think this is what #6 is referring to, is if the module shipped with a default (inactive) View that essentially replicated what was in the module, so that if you had Views installed you would see that, and if you activated that View it would automatically be a drop-in replacement for the current registrations handling. This would mean that if a site builder wanted to add just a single field to the current table, they could just activate this default view, make one minor modification to it, and it'd be done. That'd be a nice feature. And of course for more significant changes, this provides a departure point as well, which would be a help for less experienced users of Views, and maybe even the more experienced ones too...
So a feature request. :)
Comment #10
levelos commented@babbage, reasonable and well put request. If/when added, it should be the registration_views submodule.
Comment #11
socialnicheguru commentedthanks for your code in #2
when I try to import I get this error:
Field handler registration.mail is not available.
Field handler registration.mail is not available.
Unable to import view.
which modules must be enabled in reference to this
Comment #12
daniel-san commentedI've read that you can override the default list of registrations for an event, but I'm not sure how that is to be done if the default table is in code. If I create a new view that lists the columns that I'd like to appear for managing the registrations on an event, how do I replace the default Registrations tab?
Comment #13
LizD commentedComment #14
dpiPlease create your own issue without hijacking others. Thanks.
Comment #15
LizD commentedMy apologies. When I realized I had posted in the wrong place I tried to delete the comment but could not find a way to do so. I then erased the text and created a new issue.
Comment #16
ksignorini commentedDitto to #9. A feature like this would have saved me hours and kept a few extra hairs on my head.
Comment #17
kclarkson commented@babbage is on point with this concept.
I looked in the README file and cannot figure out how to override the current table with views. It would be much appreciated if the default views were added so that we can easily alter the display.
This would also help with creating views to export the registrations in different data formats #1923428: CSV Export for Registered Participants
Also if views has already been added to D8 core then I don't see the downside to have views as a dependency.
With this said I am not a php developer and do not understand the complexities of implementing something like this so it would be great to hear an explanation :)
Comment #18
jaypark commented@Isolesen: #3 patch failed.
why not just modify registration_registrations_page() function body to return a formatted view instead?regarding edit, should've read through your patch first.
Comment #19
jaypark commentedam trying to replicate the node/%/registrations table with a view - however, cannot get the system user or anonymous user email into a single view column, without loading each registration entity, as registration.module does:
when adding view relationships, only the anonymous email is provided - but not either system user or anonymous user email into a single field.
anyone have a way to do this without views_php?
Comment #20
jaypark commenteddidn't notice how long ago patch #3 was submitted. the following replacement for function registration_registrations_page() worked against registration -dev, commit c47de239d535628f9ebf9afd73ee21c53e7b9891.
assign $view_name and $machine_name as needed. works with entity type node, views data export. haven't tested with other combinations.
Comment #21
moonray commentedAttached is a patch against registration_views .
Some observations:
Comment #22
moonray commentedFixed an issue with the menu tabs/url.
Comment #23
moonray commentedUgh. let's try that again. Fixed an issue with the menu tabs/url.
Comment #24
jaypark commentedmoonray, #23 patch included registration_views_views_default_views() inside of your docroot folder. anyway, the table provided by registration_registrations_page() still shows when your view is enabled, still, after caches are flushed.
can you define a single views field for mail as registration_registrations_page() does (see #19) - inside registration_views_views_default_views()?
Comment #25
jaypark commented...
Comment #26
moonray commented@jaypark: My view includes both the user email address field and the anonymous field. The anonymous field is hidden, and rewrite field enabled on the user field to include both fields' output. When user email exists, anonymous wouldn't and visa versa. It looks like 1 field in the output.
EDIT: I just figured out I was missing an option. Adding this line will make the anonymous emails display in the user email field.
As for the default page view displaying vs the view, I'm not sure why that's happening for you. It works on my end.
Comment #27
kclarkson commented@moonray,
could you re-roll a patch with your most recent change ? Would love to give it a test.
Thanks
Comment #28
mrfelton commentedUpdated patch takes the work from above and updates broken relationships and filed handlers, and adds the file to the correct location within registration_views. I couldn't get the slots used header text working, as there doesn't seem to be a relationship that lets you get back to the host entity.
Comment #29
mrfelton commentedUpdated patch. Last one wasn't right.
Comment #30
kclarkson commented@mrfelton thank you so much !! Please show some love to @jaypark, @mrfelton, @moonray for getting it done !
I am confirming that this patch works but you must configure your own view's url as follows: node/%/registrations.
Here are a couple of questions
Comment #31
mrfelton commented> I am confirming that this patch works but you must configure your own view's url as follows: node/%/registrations.
You should not need to do this at all. Clearing the cache should be enough for these views to get picked up.
> Features: For some reason when I attempt to export the view in features, I am able to check the view but it is not included in the features export. Not sure if this is related
You wouldn't be able to export a default view like this with Features - if you want to alter the default view, you should implement
hook_views_default_view_alter. For example, we did this to add an additional field to the view:> Default View: Is it too much to ask to have the view already created but disabled ?
That is already the case - actually, the view is enabled by default.
> Also once you enable your own view the message stating how many slots available disappears. Any help to get that message back would be great.
there is no reason for that, and I suspect something else may be causing that to happen for you,
Comment #32
moonray commentedI don't have time to reroll the patch with this included. But attached patch adds a access handler specific to registration. using this in the view will allow you to hide the menu items/tabs using the sames access control that the non-views one does.
If someone has the time to test and implement it into the patch from #29, that would be great.
EDIT: It's based on my patch a little higher up, in case something doesn't make sense.
Comment #33
kclarkson commented@mrfelton
Is it possible to construct the view similar to how Organic Groups does it ?
Basically the view is disabled by default and if you want to reuse the view you can clone it or you can just activate and change the configurations. With the cloned view everything is exportable with features.
from an end users perspective customizing what is visible for each registration display is pretty important and could change between the type of events.
Comment #34
jaypark commentedapplied #32 to #29 to dev (commit c47de239d535628f9ebf9afd73ee21c53e7b9891) so at this point you can apply the next patch to the latest dev release. note that the #32 patch from moonray didn't apply cleanly to modules/registration_views/registration_views.info (rejected):
Comment #35
jaypark commentedComment #36
jaypark commenteddon't apply that last patch #35.
Comment #37
jaypark commentedpatch includes mrfelton #32 patch, with an attempt at a correction for what was intended: assumed new file included as dependency in registration.info, registration_plugin_access_administer_registrations.inc
Comment #38
jaypark commented@mrfelton: if you create the contrib module patch at the module's root directory, that should help resolve the patch file path issues.
Comment #39
mrfelton commented@jaypark. You should not be creating patches from your Drupal root. Please refer to http://drupal.org/node/707484 for details of how to correctly generate the patch (you should be using
git difffrom the module registration module root). That patch you have provided in #37 will not apply cleanly with git or with drush make.Comment #40
mrfelton commentedThe patch in #37 is missing the .default.views.inc. Updated patch includes the missing file, and fixes the patch format to conform to Drupal standards. Also, I have altered the validation on the contextual filter so that it only validates that the argument is numeric and does not validate that it's a valid Node ID since registrations can be attached to any Entity (Commerce Products in the case of Commerce Registrations). I also added some empty text to the view for when there are no registrants - as per the non-views list.
Comment #41
jaypark commentedmrfelton, my mistake, thank you for the correction and the patch. meant to address #38 to moonray.
applied your patch #40, but with some resulting .rej. at first review, the only salient issue is that after enabling registrations view, "[capacity_used]" appears at node/%/registrations/list header, rather than the numeric value. prior to enabling the view the numeric value shows correctly.
Comment #42
mrfelton commented@jaypark are you using the latest git code? The patch applies cleanly against latest code in git. Re the issue with "[capacity_used]", I noted this when I originally posted the patch. A view field handler doesn't exist for that yet, so that needs to be created first.
Comment #43
moonray commented[capacity_used] in the header will be grabbed from the first record. If there are no records, [capacity_used] does not get replaced by a number. It's a small nuisance.
Comment #44
mrfelton commentedUpdated patch makes proper use of the access plugin that was provided in #32.
Comment #45
jaypark commentedpatch #44 applies cleanly to
commit c47de239d535628f9ebf9afd73ee21c53e7b9891
Author: Tauno Hogue
Date: Tue Feb 26 07:55:08 2013 -0800
User entity_type for token tree instead of node
moonray, mrfelton - try enabling the Registrations view, visit node/%/registrations and see if "[capacity_used]" also shows for you. it does for me, with 1 anonymous user registered.
Comment #46
mrfelton commented@jaypark - yes, [capacity_used] works fine if there are some registrations.
Comment #47
jaypark commentedyes [capacity_used] works when the view is disabled- try enabling the view. then "[capacity_used]" shows instead of [capacity_used].
Comment #48
kclarkson commentedjaypark is correct ! for some reason once the view is "enabled" the token's no longer work as before.
Comment #49
nwom commentedDoes patch #44 work correctly with the patch located here: #1949466: Add views filters for open date and close date ? After applying both, my Total Capacity field ended up showing as "missing field/handler" in views.
It would be even better if the functionality provided in that patch could be implemented into this one.
Comment #50
littledynamo commentedThe patch in #44 works perfectly for me. Awesome work guys :)See comment below.Comment #51
littledynamo commentedI am seeing the same error as NWOM. I have a separate view for listing my events and since installing the patch I am getting "Broken/missing handler" error for the Total Slots field. Here is my view setup screen:
I rolled back the patch and the error disappeared. Other fields that are in registration settings seem to be ok (e.g. close date).
I don't have the patch installed mentioned by NWOM (#1949466: Add views filters for open date and close date) so it seems like an issue with this patch.
Comment #52
SilviaT commented+1 for this feature request
would be extremely useful
Comment #53
kclarkson commentedSo can we get the patch from 44 committed ?
Then open another issue to get the token's working ?
Comment #54
Renee S commentedIn the meantime until the token is fixed, and rather than replacing the default view, I created my own view and then put it on the Manage Registrations page as an additional tab.
1. Create a view page with a path of /[entity]/%/registrations/[yourpath] - it should be a subset of the main registration path
2. Choose Menu: Tab, and add the tab (I called mine "Details") to the Navigation menu.
Drupal figures out where it needs to go. When you view your registration info, now you have an additional tab that extends the default registration and can show all the fields you wish!
Comment #55
ergophobe commentedAgreed with #53 - it would be great to have this committed and then open another issue for any problems with tokens.
#44 works great for me and is a huge time saver for getting up and running. Much thanks jaypark and mrfelton
Comment #56
Oonae commentedJust applied #44... works great!
Thanks a lot guys, you're amazing!
It's a really usefull feature!
Comment #57
ladybug_3777 commentedI just tried applying the patch in #44 but I got the following error:
patching file modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc
patching file modules/registration_views/includes/registration_plugin_access_administer_registrations.inc
patching file modules/registration_views/includes/registration_views.views_default.inc
patching file modules/registration_views/registration_views.info
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file modules/registration_views/registration_views.info.rej
patching file modules/registration_views/registration_views.module
patching file registration.module
Hunk #1 succeeded at 478 (offset 7 lines).
Hunk #2 succeeded at 487 (offset 7 lines).
I'm using version 7.x-1.3 and not the latest dev. Is that what is causing my problem?
Comment #58
ladybug_3777 commentedOh and this is what was in the registration_views.info.rej file;
--- modules/registration_views/registration_views.info
+++ modules/registration_views/registration_views.info
@@ -18,3 +18,4 @@
files[] = includes/registration_handler_field_entity_datetime.inc
files[] = includes/registration_handler_field_entity_settings_link.inc
files[] = includes/registration_handler_field_entity_registration_status.inc
+files[] = includes/registration_plugin_access_administer_registrations.inc
Comment #59
ergophobe commentedIt should apply to 1.3. I believe that's what I applied it to.
That said, it's only the .info file you're having issues with, so you could probably apply that manually easily enough. All the patch is doing to that file is adding this line
files[] = includes/registration_plugin_access_administer_registrations.inc
Comment #60
kclarkson commentedIs there a reason that the patch in #44 isn't being committed ?
Comment #61
maxplus commentedHi,
I used the solution as described in #54 in combination with the TAB TAMER module to disable the default tabs of the registration module.
Thanks!
Comment #62
kclarkson commentedIs there another maintainer that would be willing to apply this patch?
It's been 2 years and it's frustrating to have to apply this patch for new projects.
Comment #63
sushilck commentedI am having the same problem.
I wants to export the registrants list in csv format.
I am using view export module to export registrants list.
But as the registration fields not same for all node i can not add a fix number of field to export.
I want to export all the registration fields for a node.
Thank you
Comment #64
kclarkson commentedSeeming Views are part of Core in D8 it would be great for this feature to be implemented in the D8 port.
Comment #65
ergophobe commentedGiven that many people are using this successfully and the one reported failure concerns only the .info can we move this to RTBC in hopes of getting it committed?
Comment #66
roball commentedRe-rolled patch against latest 7.x-1.x branch. Also applies cleanly against release 7.x-1.3:
Comment #67
roball commentedComment #68
roball commentedFYI, after applying the patch and flushing all caches, the view "Registrations" at "node/%/registrations" is immediately active. So no need to enable it. It is working great! Big thanks to the authors. Hope this gets committed some day.
Comment #69
dkosbob commentedThanks for the Re-roll. Though the view was active, I had to correct a typo in the path under Page settings on the view: it was missing a / between "/node/%" and "registrations/list". After that, it works swimmingly.
Comment #70
roball commentedStrange. The page path was
/node/%/registrations/listimmediately (correct) after applying the patch! If you look directly into the patch, you will find the line+ $handler->display->display_options['path'] = 'node/%/registrations/list';so there is really no slash missing.
Comment #71
paul53181 commentedThe contextual filter " Registration: Host entity ID" does not seem to work for me.
Comment #72
blackey5000 commentedIn response to paul53181, and to anyone else who is looking for a solution to this issue and found that the view generated by the patch has a problem with the Host entity ID contextual filter:
This patch/view appears to only work with Entity Registration, and NOT with Commerce Registration.
After starting with a fresh D7 site, downloading all the appropriate modules, and applying the patch with success, I found that applying it to sites that were already up and running, it did not work. After a lot of confusion and code-searching, I found that this view will only work properly with nodes that have a registration field. I was trying to use this with product displays nodes which contain a product reference field which in turn contains the registration field.
The Host entity ID the patch/view is looking for is the NID of the node which contains the Registration field. With Commerce Registration, the Host entity ID would be the product NID, as that is where the Registration field lives, but for my situation, I want it to be the product display NID. Thus, I had to created a Commerce Product view with relationships to the Registrations associated with the products. I have attached a sample view:
This view will override the default Registration view, just like the patch does, but it instead uses the Product Display NID for its contextual filter. You can now do any views related manipulation you require. I hope this helps someone avoid aggravation.
Comment #73
kclarkson commented@blackey5000 could your role this into a patch?
Comment #74
alibama commentedthe count function in this doesn't seem to work - i always see "1" reserved - tested with aggregation settings but ended up using the group counter in the header field and exposing a filter on the registration state to select by state... need to get the "xx registrations out of yy spaces" part working now - the xx works from the result counter, but I don't know where to find the yy spaces available in the view
Comment #75
socialnicheguru commentedno longer applies cleanly to march 31 registration dev.
Comment #76
roball commentedYes, the patch from #66 no longer applies to release 7.x-1.4. It needs to be re-rolled.
Or, you can install Entity Registration 7.x-1.3, apply the patch, and upgrade to 7.x-1.4.
Comment #77
roball commentedComment #78
wattdesigns commentedWell, I've tried both methods and am having trouble getting either to work. So, I come to you guys to help me figure out the silly thing I'm doing wrong.
I'm on Drupal 7, with both Entity Registration and Commerce Registration. The site itself works great! Good combination of systems. But as others listed above, I need to edit the Manage Registrations tab. I'd love to have it be a view and then I could head out.
So, here's what I've done. First, I used the view in #72 as it looked like a faster solution. It altered the Manage Registrations tab and made it a view! Sweet! But none of the registrations were shown. This was for both registrations using normal entity registration and registrations using commerce registration (I've got both on the site). I figure it's a contextual filter issue, but I can't figure it out. If I remove the contextual filter, all the Commerce Registrations for the entire site show up...so that's a plus but not really helpful.
Next, I wiped all that out with a backup/restore and tried to patch the module with the patch from #66. Never done that large of a patch before and had to set up NetBeans. Took a while, but got it configured and seemed to be working. When I applied the patch to Entity Registration 1.3, I got a message that it was partially patched. But I can't find any errors. So, I uploaded the patched version, cleared the caches, and went to the Manage Registrations tab....but it's not a view. 8-( Plus, I saw no errors in the error log.
So, I'm not sure which pathway to keep banging my head over. Any advice from you Drupal Ninjas?
Thanks!
Comment #79
wattdesigns commentedAny chance any of you Ninjas could re-roll the patch for me? I can't get the older patch to apply, even using version 1.3 as suggested. Thanks!!!!
Comment #80
göran commentedCan anyone explain how to get this patch to work in release 7.x- 1.4?
#76 confuse me a bit?
Question #76 - If upgrade from an earlier version, does it means that the "patch parts" from earlier versions "is following" up to the later versions - so "the patched small pieces" it is still there???
Else - how to make it as #76 means?
Comment #81
göran commentedAfter study the code in the patch, it seams to be the last part of patch (for registration.module) who already has been change and are included in the code in Entity Registration version 1.4.
- Attached is the parts from earlier patch for version 1.3, - who will apply on 1.4, without any error.
!!!!- please try it on a copy of page before use it (examined on own responsibility) - and report HERE if there is any miss match OR if it work's fine (there is no author info inside the patch - ).
I did did try it with good result - but that's not good enough to be completely sure... I think
Comment #82
hanoiiIt's true that some of the changes added by #66 where added and not necessary, but not everything that the re-roll on #81 did, which is missing some important bits.
Attached is a re-roll from #66 with what's necessary and a bit of a cleanup of not needed hunks.
Comment #83
cboyden commentedThe latest patch is working pretty well. I found two problems:
Comment #84
cboyden commentedHere is an updated patch that adds a relationship to the host entity in order to get at the registration status and the total capacity used.
It doesn't look like the module provides a way to get at the total capacity available. That's going to be necessary to make this view as useful as it can be. I'll see if I can get that added in.
Comment #85
hanoii@cboyden it will definitely help if we start adding interdiff patches as well, so we can follow up changes, do you know how to make one and/or want to do it?
Comment #86
cboyden commentedRight! Here's an interdiff between the patches in 82 and 84.
Comment #87
cboyden commentedI have another updated patch and interdiff which adds a field handler for the capacity. The handler file in registration_views was there, but the code in it was an exact duplicate of the code for the access control plugin. I guess both of the files were loading without issue? But since the 2nd one called in the .info was the mis-named one, that caused me some issues when I changed the field handler file to actually be a field handler.
So if you apply this interdiff, you will need to rebuild your registry, otherwise the access control will disappear from the view.
drush rr --fire-bazookaworked for me.Comment #88
hanoii@cboyden nice rework, from my tests seems to be working fine, and finally with views_data_export a nice CSV out of it, do you think there's still work on it?
Comment #89
hanoiiOne thing I am noticing is that if the registration host entity has no registrations, the header displays like this:
[capacity_used] total slots out of [capacity_total] used for asdf. Registration is [registration_status].
There are no registrants.
Tokens are not replaced
Comment #90
hanoiiMaybe worth setting the header to not be shown if no results are there.
Comment #91
dsnopekI haven't tested the code, but here's some quick code review:
These comments need to be updated! They reflect the original handler that was copied and modified.
FALSE &&makes this code a no-op. Maybe instead it should be removed or commented out? It easy to thing this code is doing something when reading the code quickly.I doubt there is really such a help topic! At least it's not being added in this patch. :-)
Comment #92
dsnopekI just tested the patch, and for the most part it works great!
However, I was able to reproduce the issue that @hanoii found:
Except for me, it wasn't necessary to actually disable registrations. If registration were enabled but there were no registrations yet, then I see it without the tokens expanded. This seems important to fix!
Comment #93
hanoii@dsnopek my same use case exactly, maybe It come out wrong, but it is with a registration and no registrations yet.
The tokens comes from the views result so probably not an easy fix. I think the best compromise is to just set the views header not to be displayed if no result sets are there.
Comment #94
cboyden commentedOK, I've made the recommended changes in this patch:
On the last point, I could use a review of those comments.
Comment #95
rwilson0429 commentedI couldn't apply the patch in #94 (Hunk #1 FAILED at 508) to the 7.x-1.3+2-dev.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25545 100 25545 0 0 82229 0 --:--:-- --:--:-- --:--:-- 160k
patching file modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc
patching file modules/registration_views/includes/registration_handler_field_entity_capacity_used.inc
patching file modules/registration_views/includes/registration_plugin_access_administer_registrations.inc
patching file modules/registration_views/includes/registration_views.views_default.inc
patching file modules/registration_views/registration_views.info
patching file modules/registration_views/registration_views.module
patching file registration.module
Hunk #1 FAILED at 508.
1 out of 1 hunk FAILED -- saving rejects to file registration.module.rej
Comment #96
hanoii@rwilson0429 patthces should always be applied against the latest dev.
Comment #97
rwilson0429 commentedThe patch in #94 applies cleanly and works beautifully.
Thanks, hanoii, you are so correct. I thought that I had updated to the latest dev. Upon further review, I wasn't using the latest dev. Taking your advice to use the latest dev, I updated to the latest dev and the patch in #94 applied cleanly. Thank you.
This View is a significant improvement in the management of registrations. The manage registration functionality that this module initially implements does not allow enough flexibility for many use cases. This view overcomes this deficit and improves the usability of the registration module. Thanks.
Comment #98
roball commentedThe view is absolutely needed! Without it, the module is not really useful. However, chances to get the patch committed are low unless the issue status is RTBTC.
Comment #99
roball commentedComment #100
spalding@senylrc.org commentedI applied the patch in #94 just fine but when i go to look at my list of registrants I get "There are no registrants." If I disable the view from the patch and go back to the original the list of registrants shows up fine.
I think it has something to do with the view filter, if I preview the view and enter the HID. I just don't know enough about views to figure out what could be wrong.
Comment #101
jami commentedComment #102
jami commentedComment #103
jami commented#94 applied cleanly for me, but can anyone provide a summary of the changes in this version to make review easier? Thanks for a lot of hard work -- we'd love to make the view more useful if possible.
Comment #104
dadaisme commentedWill this be commited? Would be nice.
Thx.
Comment #105
aaronbaumanFYI: if you're using registration commerce, this view will not work for you.
Comment #106
wattdesigns commentedOH! That must be why I've been banging my head trying to get this to work. Anyone know how to make the view work WITH Registration Commerce????? I'd be eternally grateful!
Comment #107
aaronbauman@WattDesigns you can use the same view, but you have to change the relationship.
Users are registered against commerce_products, not nodes, when using commerce registration.
Comment #108
wattdesigns commentedAh, that would explain why I got the view to show, but it was empty. I'll give that a try. Thanks!!!!
Comment #109
kclarkson commented108 comments and no commit?
This is why someone has created a different registration module for D8.
Comment #110
Rustan commented#94 is working fine for me. Please commit, this functionality is needed.
Comment #111
rozh commented#94 works for me too.
Comment #112
cboyden commentedIf the patch is working for all of you, feel free to mark it RTBC. (I can't, I posted the patch.)
Comment #113
rozh commentedcboyden, thanks a lot for your work!
Comment #114
Rustan commentedDefault settings for this view is to allow all logged in users to see it. Is this expected behaviour for others? I expected the list of registered persons to be private.
Is there any easy way to change this to only be viewable for persons who have access to edit registration settings for the current node (as opposed to the current setting of anyone with a certain global permission or anyone that is logged in)?
Comment #115
cboyden commented@Rustan, access to the view's path /node/%/registrations/list is controlled by the module's built-in permissions. You can only see the list if you can administer registrations of that type, or if you can both update your own registration and edit the entity it's attached to. So the built-in permissions take into account the specific node. I've tested the path with an unprivileged user and saw the Access Denied page as expected.
Comment #116
Rustan commented@cboyden thanks, sorry for my mistake. Yes, works as expected. If user cannot edit the node then the view is not accessible either.
Comment #117
As If commentedI've got all permissions mentioned in #115 but my registration tab has disappeared.
I'm using registration_views 7.x-1.6. Do I need to use the dev version?
Comment #118
socialnicheguru commentedI am getting the following error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'registration_node.user_uid' in 'on clause'
when I add the following relationship:
(node being the Registration) Registration: User
Comment #119
roxart commentedHi this is very nice and worked, however I want some information to be available to ALL users (also anonymous) on the page of Events.
How can I do that? I thought people in here can tell me where the right spot in the code is to do that.
Like if I want following information on the main view of an event:
9 total slots out of 24 used for Modern Weekly - MaRo Games Basel. Registration is Open.
other thing: is it somehow possible to let everybody VIEW a new tab with registrations with another view where i show only number and lets say usernames
Comment #120
kevster commentedgreat stuff - just what I needed thanks!
Comment #121
nicjasno commented#94 works, but i get an error:
Notice: Undefined index: entity type in views_handler_field_entity->init() (line 44 of /Users/nicjasno/Sites/linuksi.com/sites/all/modules/views/handlers/views_handler_field_entity.inc).Comment #122
calinh commentedDoes anybody know this patch can be successfully applied now on top of 7.x-1.6 ? Or must be applied on top of 7.x-2.0-beta1 ? Or not at all, because is outdated?
I have applied it now on 7.x-1.6 and it crushed my site. The update was made manually and it is very possible I have done something wrong. So, any ideas? Thank you.
Comment #123
gaele commentedPatch still applies. No errors here.
Comment #124
kclarkson commentedIf you need a Drupal 8 solution the Webform module has a demo events registration sub-module. I currently have a website using it for 40 different events and all of the features from Registration Module have been added. Including the ability to customize a view with your submissions.
Comment #125
littledynamo commented@kclarkson that's good to know! Do you have a link to the module?
Edit: I think you mean it's bundled with the main Webform module rather than a separate contrib module?
Comment #126
kclarkson commented@littledynamo,
haha yeah. I guess that is tomahhto tomaaaato :)
Comment #127
Anonymous (not verified) commentedPerfect patch, please commit
Comment #128
gaele commentedUsing Views Data Export, I tried to add a button to the view to download the table as CSV. This does work for users having the administrator role. However for normal users who are author of the node and may administer registrations of this node the button is not shown. The direct link to the CSV is however accessible.
This may be related: #2728609: Export buttons: OG permissions are ignored
Comment #129
goose2000 commentedHi - is this patch still needed in the ? :
Development version: 7.x-1.x-dev updated 14 Feb 2019 at 00:03 UTC
I ask because the Readme promises :
### [Views](http://drupal.org/project/views)
Not happy with the default tabular list of registrations? No problem,
registrations and their fields are all Views friendly. You can override the
default event registrations list, create additional ones, etc.
Thanks for any guidance.
Comment #130
gaele commentedI guess so. The Readme was last changed five years ago.
Comment #131
john.oltman commented