Related resource index view. #5171
-
Hi everyone! What is my question: I have a resource X related to Y by belongs to many relation. On detail view of resource Y I can see X resource index table with its fields, and in addition pivot fields. That is fine, but resource X has many fields on index view I don't want to display when index view is displayed via relationship. Right now I have two options: Create extra resource just for displaying index view of X resource via relationship. Second, in resource X use fieldsForIndex and in addition use What do you think about it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can always create field macro for reusable/repeating filters. |
Beta Was this translation helpful? Give feedback.
-
So, my case: Resource Trainer, index view fields. ```
``` , and via relationship on the index view I want to see only trainer name. Right now to every field I don't want to see on the index via relationship I have do add to hide them. So, my question is how to make fieldsForViaRelationship? :-) |
Beta Was this translation helpful? Give feedback.
You can always create field macro for reusable/repeating filters.