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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Using navigation macro for other dropdowns in typhoon

Started by Daniel Wrightson 5 years ago · 0 replies · 559 views
5 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 Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago