How can I add a link or enable functionality to edit an event?

When I click an event on the Calendar (when logged in as admin) an edit tab appears so that I can edit an event, but users with member permission do not see this. I don't necessarily want to see the edit tab I just want the edit functionality.

When I click edit the path is node/82/edit, for example. Obviously the node 82 is dynamic so I need a way to capture this if I create a custom block with an edit link. How can I do this?

Thanks!

Comments

perstam created an issue. See original summary.

nedjo’s picture

@perstam

Since this is a general Drupal support question rather than something specific to Open Outreach, you might want to look at the different support options, https://www.drupal.org/support.

I'm not totally sure what you're looking to do, but one option might be:

  • If not already enabled, enable the Views UI module.
  • Create a new view of the type of content that you want to provide edit links for.
  • Add a contextual filter for the node ID and configure to provide a default value from the URL.
  • Add a block display.
  • Configure the display to use fields and add an edit field, which provides a link to edit the given piece of content.
  • If it's not already enabled, enable the Context UI module.
  • Use Context to place the block as desired.
samstamport’s picture

I'm not quite sure how I solved this problem, but it works just fine now.

nedjo’s picture

Status: Active » Fixed

Great!

Status: Fixed » Closed (fixed)

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