So I am trying to create a link selecter for the footer menu.
Blueprint
footerlinks:
label:
en: Footer Links
de: Footer Links
type: checkboxes
default: architecture
options: query
query:
fetch: index
Code
<?php foreach($site->footerlinks()->split() as $footerlinks): ?>
<li>
<a href="<?= $footerlinks->url() ?>">
<?= $footerlinks->navigationname()->html() ?>
</a>
</li>
<?php endforeach ?>
How would I achieve this because using <?php echo html($category) ?>
will just return the value, so how do I go about retrieving the URL etc…? Is there where I need to use a hook?