Posted by lisarex on December 27, 2012 at 7:02pm
4 followers
Jump to:
| Project: | Drupal Commons |
| Version: | 7.x-3.x-dev |
| Component: | Events |
| Category: | bug report |
| Priority: | major |
| Assigned: | jpontani |
| Status: | closed (fixed) |
Issue Summary
The Events page is missing the 'List an event' button as seen on https://projects.invisionapp.com/console/2134861
Comments
#1
#2
This should be fixed in the latest dev. The links still need to be styled properly for each page, and have a corresponding CSS class "create-event-link".
http://drupalcode.org/project/commons_events.git/commitdiff/f73995c
#3
The other "Create x" buttons ("Create a group", etc) are generated by blocks that first check node_access() before printing the link. This link should do the same.
#4
Added a block that calls user_access for creating an event node. Added this link to both Solr and Views landing pages. Also updated the Views landing page to be panelized and show the 3 event blocks (attending, created, follow) for users.
http://drupalcode.org/project/commons_events.git/commitdiff/b4eb4bc
http://drupalcode.org/project/commons_events.git/commitdiff/6258645
#5
Sorry to bump this back to NW but I believe we want to use the node_access() API here, rather than strictly user_access():
So close!
<?phpuser_access('create event content')) {
?>
#6
Ah yep, didn't pay attention. Just changed it.
http://drupalcode.org/project/commons_events.git/commitdiff/30639de
#7
#8
Automatically closed -- issue fixed for 2 weeks with no activity.