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,
I have a backend form for products and another form for variants. So a product table is there and it is linked to many variants by product_variant_map. The variants are linked to products like this:
product_variants:
label: Variants
view:
list: $/xxx/xxx/models/product_variant/columns.yaml
toolbarButtons: link|remove
manage:
form: $/xxx/xxx/models/product_variant/fields.yaml
recordsPerPage: 10
pivot:
form: $/xxx/xxx/models/product_variant/form.yaml
models/product_variant/form.yaml looks like this:
fields:
pivot[image]:
label: Image
type: fileupload
mode: image
imageHeight: 260
imageWidth: 260
On the product_variant_map table I had to add a column "image" to trick october to save the image (https://github.com/octobercms/october/issues/1600#issuecomment-158235356)
Now the problem is I cant save the title and description for the image. Everything else works. If I click on the image and try and enter title and desc it gives me an error like: "A widget with class name 'relationProductVariantManagePivotFormPivotImage' has not been bound to the controller" on line 513 of /var/www/xxx/modules/backend/classes/Controller.php
Last updated
For the attachment save button this is the handler registered. Does this ring a bell for someone?
relationProductVariantManagePivotFormPivotImage::onSaveAttachmentConfig
1-3 of 3