F
Filament16mo ago
xy

Disable relationmanager tabs

I have 2 relation managers under my EditRecord page. How can i disable the tabs? I just want them listed one after the other.
17 Replies
Kenneth Sese
Kenneth Sese16mo ago
Try removing the RelationGroup in your Resource.
xy
xyOP16mo ago
I don't have a RelationGroup?
Kenneth Sese
Kenneth Sese16mo ago
If they are combined with the form then remove the hasCombinedRelationManagerTabsWithContent on your editResource
Salah Kanjo
Salah Kanjo16mo ago
Wrap each relation class with RelationGroup i'd say
Kenneth Sese
Kenneth Sese16mo ago
By default, RM aren’t grouped and aren’t combined with the form. One of those two must be set someplace Thats not necessary
xy
xyOP16mo ago
i don't see
hasCombinedRelationManagerTabsWithContent
hasCombinedRelationManagerTabsWithContent
either?
Kenneth Sese
Kenneth Sese16mo ago
Are the RM combined in tabs with the Edit form? Or below the edit form?
xy
xyOP16mo ago
Below. Registered like so under edit resource:
public function getRelationManagers(): array
{
return [
BlogResource\RelationManagers\CommentsRelationManager::make(),
BlogResource\RelationManagers\RelationManager::make(),
];
}
public function getRelationManagers(): array
{
return [
BlogResource\RelationManagers\CommentsRelationManager::make(),
BlogResource\RelationManagers\RelationManager::make(),
];
}
Kenneth Sese
Kenneth Sese16mo ago
Check your main resource...that's where the RM's go
Salah Kanjo
Salah Kanjo16mo ago
GitHub
How to stack multiple relation manager tables instead of tabs? · fi...
I have 3 relation managers, which are viewed in tabs by default instead of stacked tables. How can I reverse this so that I have multiple tables viewable on scroll. The opposite of this? Move tabs ...
xy
xyOP16mo ago
The method in the main resource is the same
Kenneth Sese
Kenneth Sese16mo ago
I'm sorry! I'm wrong You actually need to group them. @Salah Kanjo was right Apologies But just group them once
xy
xyOP16mo ago
Yes, this worked, thanks!
xy
xyOP16mo ago
Is there a way to also add the relation manager in the middle of the edit form rather than at the end?
Salah Kanjo
Salah Kanjo16mo ago
You're welcome!
xy
xyOP16mo ago
In between 2 sections in $form
Want results from more Discord servers?
Add your server