Custom links in users dropdown
# ❓questions
j
Is there a way to add a module route to the dropdown to the right before CMS users instead of in the normal place?
i
yup, override the
_user.blade.php
file
j
Where would i need to add? in views/twill/user ?
i
resources/views/vendor/twill/partials/_user.blade.php
j
thx
Any good way to do this in a capsule that's inside a package? 😛
i
hmm not really, I would document your package for your package consumers to add that link there if they want to, no?
j
yes that's the next best thing. Last question on this than, the capsule is loaded using the extends TwillPackageServiceProvider, is there a way to load my route as last. Normally i could set priority on routes in my service provider but the capsule twill routes are handled already
i
good question. We've had some discussions about route ordering in the past @Harings Rob any input here?
h
I don't. I believe you could disable package auto discovery and manually load the provider last?
j
That's an option, i will look into that. Im working on a cookie consent package in which everything can be added using a twill singleton. I'm no expert using google tag manager and for our clients adding scripts using the cms is a great option i think. https://github.com/BKC-Media/twill-cookie-consent My first laravel package so all critique is welcome.