Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Using navigation macro for other dropdowns in typhoon

Started by Daniel Wrightson 6 years ago · 0 replies · 638 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 Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago