Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Dropdown Navigation Menu

Started by Mark 7 years ago · 0 replies · 579 views
7 years ago

Please help me write the code macro nav_loop(page) for the Dropdown Navigation Menu.
Menu structure

TXT
NOT ROUTABLE parent {

NOT ROUTABLE sub parent 1 {
children item 1
children item 2
}

NOT ROUTABLE sub parent 2 {
children item 3
children item 4
}

}

html code

HTML
<nav>
<div>
    <ul class="uk-navbar-nav">
        <li>
            <a href="not-routable-parent">NOT ROUTABLE parent</a>
            <div class="dropdown-width-2">
                <div class="width-1-2">
                    <div>
                        <ul>
                            <li><a href="not-routable-parent/not-routable-sub-parent-1">NOT ROUTABLE sub parent 1</a></li>
                            <li><a href="not-routable-parent/not-routable-sub-parent-1/item-1">children item 1</a></li>
                            <li><a href="not-routable-parent/not-routable-sub-parent-1/item-2">children item 2</a></li>
                        </ul>
                    </div>
                    <div>
                        <ul>
                            <li><a href="not-routable-parent/not-routable-sub-parent-2">NOT ROUTABLE sub parent 2</a></li>
                            <li><a href="not-routable-parent/not-routable-sub-parent-2/item-3">children item 1</a></li>
                            <li><a href="not-routable-parent/not-routable-sub-parent-2/item-4">children item 2</a></li>
                        </ul>
                    </div>
                </div>
            /div>
        </li>
    </ul>
</div>
</nav>

scrin_grav|690x385, 75%

I am ready to pay for help.

Suggested topics

Topic Participants Replies Views Activity
Support · by alex, 2 months ago
7 620 14 hours ago
Support · by Supple, 2 days ago
0 46 2 days ago
Support · by TomW, 2 days ago
2 56 2 days ago
Support · by TomW, 6 days ago
3 153 4 days ago
Support · by TomW, 6 days ago
2 115 4 days ago