Twill navigation group
Any easier way to achive grouping by title in the primary navigation which is not module nor singleton.
This is achivable via legacy, but I want to stick to the new OOP way, but it seems that its not working or I am missing something.
I partialy achived this via external url, but it has some issue.
AppServiceProvider
twill.php
Result:8 Replies
Okay, this works fine right now with this method
->doNotAddSelfAsFirstChild()
@kallefrombosnia Can you post complete code. I want top child to be custom name which doesn't connect to any module or singleton
This is exactly that and full code is provided. I asked is there any better way to do this, but I dont see it.
This is the latest change.
Let me check and I will let you know what works for me
@kallefrombosnia instead of using the toExternalUrl I would personally set it the forModule('albums') for your primary Music link - otherwise i do the same as what you have done
I'd like to keep it seperated like two children items. This was really easy to achive via legacy navigation but Ill stick to OOP for now. Thank you for considaration. 🙂
I'm not sure I get why you're using toExternalUrl when there is forRoute and forModule
https://twillcms.com/docs/api/3.x/A17/Twill/View/Components/Navigation/NavigationLink.html#method_forRoute
Damn, I missed this then. Ill try it ty @ifox.dev