Closed (duplicate)
Project:
Entity Registration
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2012 at 11:27 UTC
Updated:
6 Apr 2012 at 15:32 UTC
We created a new module registration_views that exposes three new fields to views so you can show the capacity, availability and number of registered users using views.
Comments
Comment #1
dpiWouldn't this kind of functionality be better suited in Registration core?
Comment #2
attiks commentedWe tried it to add it to registration core first, but we got a WSOD, probably because the way entity_api makes the fields available to views.
Comment #3
levelos commentedThanks @attiks, appreciate the code and support, but this poses problematic on several fronts. First, this functionality should definitely be in the core module, or at least bundled as a submodule, which should not be a problem when implemented correctly. Second, it's trampling on the module's namespace and prevents us from bundling a registration_views module. Finally, the code is already incompatible with the latest version of Entity Registration. E.g., your exposing a registration_node table, which is no longer part of the schema. In general, the schema and API is still changing substantially, hence the alpha tag. It's too early to be working on dependent modules. Once we have a beta release, the API should be stabilized and we'll provide an upgrade path.
Comment #4
attiks commented@levelos: i know, but we needed it quite urgently, when registration is stable I don't mind merging all together. I'll see if I have time to catch up with the latest changes.
Comment #5
rokrUntil there is a views solution what would be the best approach to display these values on node view right now?
Comment #6
attiks commented@rokr, fastest is to use hook_node_view and add the fields to the $node object
Comment #7
levelos commentedBeing addressed in #1488604: Add additional views fields.