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 →

Using navigation macro for other dropdowns in typhoon

Started by Daniel Wrightson 6 years ago · 0 replies · 758 views
6 years ago

I've starting using Typhoon with Tailwind.css and Alpine.js and am enjoying it. When installing and styling the langswitcher plugin it struck me that it should be possible to use the navigation macro to manage the dropdown, but I'm stuck on creating the array to pass in to the macro.

Am I correct in assuming the best way would be do it in PHP with a structure similar to the buildLinkNode function?
Or could I make an array in twig to pass to macro?

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago