Implementing tabs that changes the whole page
How do I implement a tab that will change the whole page and set the url?
The current setup of that is that you can click multiple tabs without affecting the url.
In my case I have a lots of tabs and some tabs contains tables and I don't want the page to load all the contents of those tabs in one go as it will severely affect the resource and performance on the server.
Please see the demo
15 Replies
So as you see on the demo the tab is set and it only loaded that contents on the selected tab which is what I wanted to implement here.
Resource sub-navigation is what you're looking for I think
Hi, Morty would it be okay if you could guide me through this?
I've got my own projects I'm working on but if you post in here I'll help when I can.
This is what you're looking for, right?

YES something like that, what happens if you click on the contact, will the whole page reload and load only the the contents inside the "Contacts" Tab?
Yes, it's loading a manage related records page but you can also just do custom pages.

@morty in my current setup do you recommend me to use Resource or Custom pages ?
You can mix-and-match. I can't really answer that for you because I don't know your project. If your tabs will be related records to the resource record then use manage related records pages. Otherwise you might need custom pages.
I added a custom page called
SettingAccountDetails.php
however I have trouble adding this SettingAccountDetails
as a Navigation tab under Setting.php
What should be the right way for calling custom page as a tab?
Please guide me as I am not even sure if I am doing these steps correctly or should I create a Settings Resource instead ?
ya it's sub-resource navigation. Is setting related to the user resource in that screenshot? If not, I think you'd need to create a setting resource.
Some code that might help you: