Resource in view mode, but with "attach" on relation manager

Hello guys, I have my WorkspaceResource that is only in 2 modes: index or view So in view, I would like to be able to see the "ATTACH" button of my relation manager, any idea how can I do that ? Because actually, as it's a view mode on my resource, it show me the view mode of my resource manager as well :/ Thanks!
Solution:
Fixed, using: ```php public function isReadOnly(): bool {...
Jump to solution
2 Replies
SUNSHINE
SUNSHINEOP4w ago
No description
Solution
SUNSHINE
SUNSHINE4w ago
Fixed, using:
public function isReadOnly(): bool
{
return false;
}
public function isReadOnly(): bool
{
return false;
}
inside my relation manager 🙂

Did you find this page helpful?