Browse Source

Frontend menu child item url use rules

master
Egorka 6 years ago
parent
commit
5aa0f9acca
  1. 2
      core/widgets/menu/views/menu.php

2
core/widgets/menu/views/menu.php

@ -26,7 +26,7 @@
<?php $children = $item->children; ?>
<?php foreach ($children as $child): ?>
<a <?= $child->target ? 'target="' . $child->target . '"' : '' ?> class="dropdown-item"
href="<?= $child->url ?>"><?= $child->translation->name ?></a>
href="<?= $child->getUrl() ?>"><?= $child->translation->name ?></a>
<?php endforeach; ?>
</div>
<?php elseif ($item->parent_id == 0): ?>

Loading…
Cancel
Save