2021-03-15, 18:39:17
I am using a component for the menu. I create blocks using the plugin of special pages and assign them an ID slug.
Code:
<?php
$s = array('current', 'activepath', 'currentpath', 'open');
$r = array('uk-active', 'activepath', 'currentpath', 'uk-parent');
$c = str_replace($s, $r, $item->classes);
?>
<li class="<?php echo $c; ?>">
<a href="#<?php echo htmlspecialchars($item->slug); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
</li>