F
Filament2y 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 Sese2y ago
Try removing the RelationGroup in your Resource.
xy
xyOP2y ago
I don't have a RelationGroup?
Kenneth Sese
Kenneth Sese2y ago
If they are combined with the form then remove the hasCombinedRelationManagerTabsWithContent on your editResource
Salah Kanjo
Salah Kanjo2y ago
Wrap each relation class with RelationGroup i'd say
Kenneth Sese
Kenneth Sese2y 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
xyOP2y ago
i don't see
hasCombinedRelationManagerTabsWithContent
hasCombinedRelationManagerTabsWithContent
either?
Kenneth Sese
Kenneth Sese2y ago
Are the RM combined in tabs with the Edit form? Or below the edit form?
xy
xyOP2y 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 Sese2y ago
Check your main resource...that's where the RM's go
Salah Kanjo
Salah Kanjo2y 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
xyOP2y ago
The method in the main resource is the same
Kenneth Sese
Kenneth Sese2y ago
I'm sorry! I'm wrong You actually need to group them. @Salah Kanjo was right Apologies But just group them once
xy
xyOP2y ago
Yes, this worked, thanks!
xy
xyOP2y 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 Kanjo2y ago
You're welcome!
xy
xyOP2y ago
In between 2 sections in $form

Did you find this page helpful?