I’m hoping to get some help with getting Kirby Footnotes working with Kirby Builder.
Everything works great except that the pages are made up of multiple text blocks, making the footnotes display under each block instead of at the end as a grouped list.
The page is currently set up like this (I’m guessing that the footnotes code would need to sit before the footer snippet?):
<?php snippet('header') ?>
<?php snippet('nav') ?>
<?php
foreach($page->mybuilder()->toBuilderBlocks() as $block):
snippet('sections/' . $block->_key(), array('data' => $block));
endforeach;
?>
<?php snippet('footer') ?>
And with the Kirby builder block text snippet like so (footnotes work here but as mentioned obviously being outputted under each individual text block):
<php # /site/snippets/sections/bodytext.php ?>
<section class="text">
<div class="row spc-sm">
<div class="col-xs-7">
<?= $data->text()->kirbytext() ?>
<?= $data->text()->footnotes() ?>
</div>
</div>
</section>
Any help would be greatly appreciated