Sites always have a need for various call-to-action buttons. This module provides them, by way of a relatively simple custom block, that accepts a title, optional subtitle, and a link.
Some benefits and features of CTA Blocks:
- CTA Blocks are managed on their own form at: admin/structure/block/cta-blocks
- Default CTA Blocks can be provided programatically (refer to the cta_blocks.api.php file for details)
- CTA Blocks are fully import/exportable via the ctools export api.
- CTA Blocks use machine names instead of serialized IDs.
- CTA Blocks can be fully themed via template.
- Default template is cta-block.tpl.php
- Also available out-of-the-box is cta-block--MACHINE-NAME.tpl.php
So, if you have a cta block with a machine name of 'foo_bar_baz' it has a template option
of 'cta-block--foo-bar-baz.tpl.php' by default.
Since each individual cta block can be specifically themed with it's own template, it should be very easy to add any other necessary bits, including images, or other text that can't be accomplished with the provided fields.
Dependencies
ctools - which allows cta_blocks to be exportable.
Usage and Notes
- To create and mangage cta blocks, navigate to /admin/structure/block/cta-blocks
- Use of cta blocks on your site is the same as for standard drupal blocks.
- Note: Machine names can only be 28 characters long, as they are used to create block deltas.
- Version 7.x-1.0 contained a critical bug allowing creation of blocks with machine names in excess of 28 chars.
- The update from 7.x-1.0 to 7.x-1.1 will truncate existing machine names longer than 28 characters. It will attempt to ensure these truncated values are unique, but if you encounter errors you may need to manually delete your existing cta blocks and recreate them. After the update and/or future versions are unaffected.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Administration tools, Content editing experience
2 sites report using this module
- Created by willvincent on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
