The plugin provides a call-to-action button to the Kirby Editor.
Installation is currently only possible as file download or git submodule. If anyone wants to help with setting up a composer package, I'm more than happy to accept a pull request.
Note: You can also use a different name for plugin directory, but it needs to come after editor
alphabetically.
git submodule add https://github.com/creichel/kirby-editor-cta-block.git site/plugins/kirby-editor-cta-block
- Download the source archive
- Unpack to
site/plugins/kriby-editor-cta-block
In your templates you can use the normal Editor integration:
<?= $page->text()->blocks() ?>
As with any Editor blocks, you can provide a custom snippet, so you can define how the file is rendered.
<a class="cta" data-action="button" data-title="<?= $content ?>" href="<?= $attrs->url() ?>" <?= $attrs->newwindow()->value() ? 'target="_blank"' : '' ?>>
<?= $content ?>
</a>
This plugin is licensed under MIT