Download & Extend

Missing: List an event button on the Events page

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

Assigned to:Anonymous» jpontani

#2

Status:active» fixed

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

Status:fixed» needs work

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

Status:needs work» fixed

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

Status:fixed» needs work

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!

<?php
user_access
('create event content')) {
?>

#6

Ah yep, didn't pay attention. Just changed it.

http://drupalcode.org/project/commons_events.git/commitdiff/30639de

#7

Status:needs work» fixed

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here