I would like to add buttons by selecting the pages from a drop-down in the cms. Currently, I get a dash in front of the page name which looks like this: -about. When adding multiple pages/links it only uses the first url and visually looks like this: -about-project1-project2.
<?php if($buttonPage = $page->aboutSectionUrl()->toPage()): ?>
<a href="<?= $buttonPage->url() ?>" >
<?= $page->aboutSectionUrl()->title() ?>
</a>
<?php endif; ?>
aboutSectionUrl:
label: About Button URL
type: pages
width: 1/4