Custom Contextual Links Features
Custom Contextual Links

The Custom Contextual Links module allows you to add your own links to the contextual drop down widgets of blocks and nodes.

Contextual links are really great for quick access to settings pages within your Drupal install. They cut down the time required to click through the sometimes cumbersome Drupal administrative navigation. However, the links displayed in the contextual widget need to be defined through a module. This is where CCL comes in. This module allows you to add and manage custom links through a UI that will be displayed in the contextual widgets.

You can add contextual links to:

  • a single node
  • all nodes of a content type
  • all nodes
  • a specific block
  • all blocks
  • all views
  • all displays of a specific view
  • all specific display of a view

Node action links support so far:

  • make a node sticky/unsticky
  • publish/unpublish a node
  • Promote/remove a node from the home page

Local action links can be assigned to pages with a similar interface like core blocks. The visibility can be controlled by:

  • path
  • content type
  • user role

Additionally you can also use Drupal core tokens for title and links. This allows to create a link like "node/[node:nid]/devel" which will add a link to the devel view of a node into the contextual widget.

Drupal 8 version (8.x-2.x)

This is a complete re-write of the module in order to make use of the many enhancements in Drupal 8.

Progress on the Drupal 8 version can be monitored here:
#3050009: Drupal 8 Version

Development is sponsored by:
Mellenger Interactive

Drupal 7 version (7.x-1.x)

There will be no further development on features for the Drupal 7 version. Only bug-fixes and security updates will be applied.

Thanks

Thanks goes to bmx269 for the idea and sherakama for the help and feedback.
Also to circuscowboy for his work on the views submodule and to BarisW for the implementation of Features support.

Supporting organizations: 

Project information

Releases