How does Open Outreach create a link on top of a view to create new content?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Zythyr's picture

How do I create a link to allow users to add a specific content type when viewing a specific View.

For example, see the screenshot below. This is the default Blog view for the Open Outreach distribution. I can't figure out how they created a link on the type that says "Add a new blog post". In addition, I also noticed on the right side there is a block called "Content shortcuts". That block only shows up depending on the user role. In the screenshot below, the user belongs to "blogger" role so he is able to see that block. However, if I logged in as admin, I won't be able to see that block.. .

Screenshot: http://s18.postimg.org/yg47rkc7d/drupal_add_content_link.png

Reference Forum post: https://www.drupal.org/node/2374343

Comments

It has been a while since

bhosmer's picture

It has been a while since I've looked at Openoutreach, but I believe that block is tied to the panels module.

Context and module code

nedjo's picture

Blocks in Open Outreach are placed with the Context module; see the documentation on openoutreach.org.

The "Add a new blog post" link is provided in code. See debut_blog_menu_local_tasks_alter().

Open Outreach

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week