-
I again, hahah I need, when clicking on my module, to open a playlist with the videos in that way. The video table already exists as you can see, I want to create a list for the new route just like backpack creates its beautiful lists. Has as? Gravacao-de-tela-de-2023-07-27-01-17-57.mp4Thanks a lot for the help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @denison Can I know what is the relationship? I assume that you have hasMany relationships in your Module Class |
Beta Was this translation helpful? Give feedback.
-
In my opinion, what if you just redirect to your video list, so from your module list, in your column name when you click make it redirect to video list point it out so the a href tag will be something like this <a href="{{route('video.index')}}?module_id=1">The module name </a> then inside your setupListOperation // this is VideoCrudController.php
protected function setupListOperation()
{
// add these lines
if(request('module_id')){
CRUD::addClause('where','module_id','=',request('module_id'));
}
//Here's another code
} I hope you get the idea and I hope I'm not wrong to understand what you want to achieve mate. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Hello @denison this look like you want to create a custom operation, in our documentation there is a topic about how to create a custom operation with an interface and you can customize with blade as you need. Cheers. |
Beta Was this translation helpful? Give feedback.
In my opinion, what if you just redirect to your video list, so from your module list, in your column name when you click make it redirect to video list
point it out so the a href tag will be something like this
then inside your setupListOperation
I hope you get the idea and I hope I'm not wrong to understand what you want to achieve mate.
Let me know if …