CTools plugins

Categories

Component ID

2186257

Component name

CTools plugins

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Collection of custom plugins, modifications that are widely used across different projects I am involved in.

Current features.

Node title access plugin

Allow to set access based on current node's title. This can be used for example if you are building a page manager page displayed that has tab menu item on the node/%node page and you want this tab to be displayed on particular node (by title).

Year month context

You create a blog list panels page and you want to have path to look like blog/YYYY/MM. You add a view on the page with contextual filter of blog date with granularity month. But this view will expect date to be passed as YYYY-MM. This panels contexts allows to collect year and month from URL and pass as single string to a view.

Add hooks triggered before and after panels pane block is built

Usecase. We have main menu but on some pages we want to make particular menu item active but we can't change paths. As menu pane is built with block pane we provide hooks that triggered before and after block is built. So we can replace current path with the one we like so menu item will become active. See ctools_plugins.api.php file for more details how to do that.