Hi, I started to created a Kirby extension with some little helper for the daily usage and also for easy development of Kirby extension.
GitHub: https://github.com/fanningert/kirbycms-extension-webhelper
Currently it’s support following features:
- MessageBox: Info, Success, Warning, Error, Validation
- Figure - Yes, now you block every element in Kirby with a Figure block + caption.
For Developer:
I create a method (WebHelper::getblock) to find and analys a specific block.
Example1
(info: text)
You will get following array back.
[
"type" => 1,
"attributes" => [
"info" => "text"
],
"content" => "",
"startpos" => 0,
"endpos" => 12
]
Example2
(figure caption: text)
Content
(/figure)
You will get following array back.
[
"type" => 2,
"attributes" => [
"caption" => "text"
],
"content" => "content",
"startpos" => 0,
"endpos" => 40
]
When anyone has a idea for a new feature, please post it here.