@texnixe helped me with a plugin that you could also use to create column with a shorter markup,and using css columns
plugin:
<?php
kirbytext::$pre[] = function($kirbytext, $text) {
$text = preg_replace_callback('!\(paragraphe(…|\.{3})\)(.*?)\((…|\.{3})paragraphe\)!is', function($matches) use($kirbytext) {
$customtext = $matches[2];
$html = "";
$field = new Field($kirbytext->field->page, null, trim($customtext));
$html = '<div class="paragraphe">' . $field->kt() . '</div>';
return $html;
}, $text);
return $text;
};
css:
.paragraphe {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
}
kirbytext:
(paragraphe...)
Lorem ipsum dolor sit amet, consectetur adipisicing elit. ...
(...paragraphe)