This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi everyone, i'm experimenting with the cms and i'm trying to add one hasMany relation to my form. The list shows, but i can't figure how to show the toolbar to create/delete new record.
In my config_relation.yaml i have:
reviews:
label: Reviews
manage:
form: $/vojtasvoboda/reviews/models/review/fields.yaml
list: $/vojtasvoboda/reviews/models/review/columns.yaml
view:
list: $/vojtasvoboda/reviews/models/review/columns.yaml
toolbarButtons: create|delete
In fields.yaml i wrote:
reviews:
tab: 'laravel42.place::lang.post.tab_reviews'
type: relation
commentAbove: 'laravel42.place::lang.post.reviews_comment'
placeholder: 'laravel42.place::lang.post.reviews_placeholder'
Am i missing something? Thanks for help
Last updated
I found the solution by using a partial, here the explanation https://octobercms.com/forum/post/customise-the-relationrender
1-2 of 2