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
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
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().