CTools plugin example panel

Demonstrating ctools plugins

The CTools Plugin Example module (and this panel page) are just here to demonstrate how to build CTools plugins.

No-context content type

Welcome to the CTools Plugin Example demonstration content type. This block is a content type which requires no context at all. It's like a custom block, but not even that sophisticated. For more information on the example plugins, please see the advanced help for and
The only information that can be displayed in this block comes from the code and its settings form:
array ( 'item1' => 'contents of config item 1', 'item2' => 'contents of config item 2', 'override_title' => 0, 'override_title_text' => '', )

Long Arg Visibility Block

This block will be here when the argument is longer than configured arg length. It uses the 'arg_length' access plugin to test against the length of the argument used for Simplecontext.

Simplecontext (with an arg)

This is a block of data created by the Simplecontext content type. Data in the block may be assembled from static text (like this) or from the content type settings form ($conf) for the content type, or from the context that is passed in.
In our case, the configuration form ($conf) has just one field, 'config_item_1; and it's configured with:
Config item 1 contents

The args ($args) were
array ( 0 => '12345', )

And the simplecontext context ($context->data->description) was
_from_simplecontext_argument

Configured simplecontext content type (not from arg)

This is a block of data created by the Simplecontext content type. Data in the block may be assembled from static text (like this) or from the content type settings form ($conf) for the content type, or from the context that is passed in.
In our case, the configuration form ($conf) has just one field, 'config_item_1; and it's configured with:
(configuration for simplecontext)

The args ($args) were
array ( 0 => '12345', )

And the simplecontext context ($context->data->description) was
defaultsimplecontextsetting_from_configuration_sample_simplecontext_setting

Simplecontext keyword usage

Demonstrating context keyword usage: item1 is Item1 item2 is Item2 description is _from_simplecontext_argument

Relcontext content type

This is a block of data created by the Relcontent content type. Data in the block may be assembled from static text (like this) or from the content type settings form ($conf) for the content type, or from the context that is passed in.
In our case, the configuration form ($conf) has just one field, 'config_item_1; and it's configured with:
'some stuff in this one'

The args ($args) were
array ( 0 => '12345', )

And the relcontext context ($context->data->description) (which was created from a simplecontext context) was
relcontext_fromsimplecontextargument_created_from_simplecontext