I added HandleTags trait to repository and field to form template. The field is rendered and tags are saved. I just don't know how to actually get tags now or even better how to get all items with specific tags.
Thanks! :)
OK, never mind I figured it out 馃槃
For future self:
use HandleTags; to model repository@formField('tags') to form.blade.phpmodel->tagsmodel::withTag([]) to get all items with tags@ifox we (I) need guides/recipies in docs so I can stop writing self-closing issues! :stuck_out_tongue: 馃槉
Hey @zipavlin
I tried that and I just get error:
Call to a member function count() on null (View: T:\www\mm\vendor\area17\twill\views\partials\form_tags.blade.php)
As a reference for others, do NOT do any of the following as they will stop it from working and cause errors...
I was getting the exact same error @awgul as you due to a combination of these mistakes.
Most helpful comment
OK, never mind I figured it out 馃槃
For future self:
use HandleTags;to model repository@formField('tags')to form.blade.phpmodel->tagsmodel::withTag([])to get all items with tags@ifox we (I) need guides/recipies in docs so I can stop writing self-closing issues! :stuck_out_tongue: 馃槉