B
Blueprint12mo ago
Kian

How to limit a navigation route to a specific game egg / type

Hi! Completely new to blueprint, I was reading the documentation before getting started but did not see an indication of how this could be adapted to make an extension that only applies for a specific game, could I have some guidance as to which piece of documentation I should read in that regard?
# Components.yml
Navigation:
Routes:
- { Name: "Example", Path: "/example", Type: "server", Component: "ExampleComponent" }
# Components.yml
Navigation:
Routes:
- { Name: "Example", Path: "/example", Type: "server", Component: "ExampleComponent" }
13 Replies
Emma
Emma12mo ago
Blueprint allows administrators to configure which extensions show on which eggs.
Kian
KianOP12mo ago
Ooh interesting, where would that be declared? / Is it necessary to specify it in the code?
Emma
Emma12mo ago
This can be configured per extension by clicking the top-right setting button on the extension's admin page. Nope, not at all, it just works.
Kian
KianOP12mo ago
Wonderful news What is the default behaviour? Show on all / hide on all?
Emma
Emma12mo ago
Show on all
Kian
KianOP12mo ago
Got it, thank you Final question, is it possible to use tailwindcss within the react to style the window?
Emma
Emma12mo ago
Yup Should just work within components.
Kian
KianOP12mo ago
It is frowned upon?
Emma
Emma12mo ago
Nope
Kian
KianOP12mo ago
/ Is it possible to make it into a dependency of the extension itself so that the actual pterodactyl does not require modifications? Or how would actual usage of tailwind work
Emma
Emma12mo ago
Pterodactyl uses tailwild, so you can use it in your own components as well.
Kian
KianOP12mo ago
oh that's convenient alright perfect that was it, cheers!
Emma
Emma12mo ago
Cheers!

Did you find this page helpful?