Kirby Shortcode is a powerful alternative to kirbytags, but it's more similar to WordPress Shortcode API.
Kirbytags
Shortcode
Self closing
Yes
Yes
Closing
-
Yes
Nesting
-
Yes
Any HTML
-
Yes
Access to $field
Yes
Yes
Access to $page
Yes
Yes
Example
[hello]
Some text.
[greetings firstname="Peter" lastname="Parker"]
[hello] This is a tag inside a tag.
Kirby *markdown* can be used inside a tag.
Html can be <strong>used as well</strong>!
Even kirbytags like (email: hello@example.com) works.
[/greetings]
Some more text.
[field-data]
Github: https://github.com/jenstornell/kirby-shortcode
Kirby Shortcode is a powerful alternative to kirbytags, but it's more similar to WordPress Shortcode API.
$field
$page
Example