chrisbeluga / kirby-navigation

Navigation field for getkirby.com
80 stars 12 forks source link

Add support for uuid, add clickable toggle #37

Closed tasinttttttt closed 2 weeks ago

tasinttttttt commented 1 year ago

Resolves #21 and possibly #16

eXpl0it3r commented 1 year ago

Works great, thank you! 🙂

Might want to update the example in the readme to use the uuid instead of the url.

tinogithub commented 1 year ago

First, thank you for the idea. However I am struggling on how to change my navigation bar links. How do I change this line i.e.? <a href="<?php echo $child->url() ?>"> I expected to do <a href="<?php echo $child->uuid()->url() ?>">

Every menu link now shows the corresponding UUID-link like "page://ArzOvYFUxVlEBFyu" but the page won't load after clicking.

Thank you for help


Solved it. This worked for me. <a href="<?php echo page($child->uuid())->url(); ?>">

afbora commented 11 months ago

What about uuid feature disabled from the config?

sachbearbeiter commented 2 weeks ago

Thanks for the pull request. Please see the current version 4 for new improvements.