octobercms-widgets

Relation Manager Not Showing Pivot Data

你离开我真会死。 提交于 2020-04-17 21:53:52
问题 So this question came about because of this other question I was looking into. So I have dabbled in this a bit working with backend forms and thought I knew how to tackle this. However I am not seeing the results that I thought I would. I have tried to do some research and haven't seen anyone bring this up in the issues on the github page or here in stackoverflow. Unless I missed it. How do you show the stored extra Pivot Data in the backend? Here is my model.php relationship: public

Relation Manager Not Showing Pivot Data

左心房为你撑大大i 提交于 2020-04-17 21:53:46
问题 So this question came about because of this other question I was looking into. So I have dabbled in this a bit working with backend forms and thought I knew how to tackle this. However I am not seeing the results that I thought I would. I have tried to do some research and haven't seen anyone bring this up in the issues on the github page or here in stackoverflow. Unless I missed it. How do you show the stored extra Pivot Data in the backend? Here is my model.php relationship: public

Relation Manager Not Showing Pivot Data

∥☆過路亽.° 提交于 2020-04-17 21:53:13
问题 So this question came about because of this other question I was looking into. So I have dabbled in this a bit working with backend forms and thought I knew how to tackle this. However I am not seeing the results that I thought I would. I have tried to do some research and haven't seen anyone bring this up in the issues on the github page or here in stackoverflow. Unless I missed it. How do you show the stored extra Pivot Data in the backend? Here is my model.php relationship: public

Octobercms: How can I make a repeater field jsonable because I am creating this repeater field into a different plugin

点点圈 提交于 2019-12-22 16:36:47
问题 How can I make a repeater field jsonable because I am creating this repeater field into a different plugin and I have created my own plugin. for example: I want to add a repeater field in rainlab.user plugin model but I want to do this by my own plugin so updates on rainlab.user plugin won't affect my work. Thanks 回答1: You should read about Extending Plugins. 1) First register the events in your custom plugin.php - Example 2) Add the related fields to your migration file - Example - Make sure

Octobercms: How can I make a repeater field jsonable because I am creating this repeater field into a different plugin

試著忘記壹切 提交于 2019-12-22 16:31:56
问题 How can I make a repeater field jsonable because I am creating this repeater field into a different plugin and I have created my own plugin. for example: I want to add a repeater field in rainlab.user plugin model but I want to do this by my own plugin so updates on rainlab.user plugin won't affect my work. Thanks 回答1: You should read about Extending Plugins. 1) First register the events in your custom plugin.php - Example 2) Add the related fields to your migration file - Example - Make sure

OctoberCMS: how to set repeater widget autoload

可紊 提交于 2019-12-11 16:17:24
问题 can i set the repeater widget to auto load when the form open? it has max item property, can it auto load to max item number so user dont need to hit the prompt button re-updated this my fields.yaml fields: nowarta: label: 'No. Warta' oc.commentPosition: '' span: auto placeholder: 'format penulisan ''No. 34 Tahun XIX''' type: text tanggal: label: Tanggal oc.commentPosition: '' mode: date format: 'd - F - Y' span: right type: datepicker ignoreTimezone: false renungan: label: 'Renungan Mingguan

October CMS media finder

断了今生、忘了曾经 提交于 2019-12-08 09:07:11
问题 I have recently created a plugin (using the 'builder plugin') where I have a field for attaching images (using 'media finder widget'). Everything is working fine - I can upload an image or choose one from the media library. After successful saving, when I go back to the recently saved record, the image isn't shown... How can I fix this? Thanks! 回答1: 'media finder widget' not working with relation type 'file attachment', like this: public $attachOne = [ 'avatar' => 'System\Models\File' ]; try

Octobercms: How can I make a repeater field jsonable because I am creating this repeater field into a different plugin

早过忘川 提交于 2019-12-06 09:30:49
How can I make a repeater field jsonable because I am creating this repeater field into a different plugin and I have created my own plugin. for example: I want to add a repeater field in rainlab.user plugin model but I want to do this by my own plugin so updates on rainlab.user plugin won't affect my work. Thanks You should read about Extending Plugins . 1) First register the events in your custom plugin.php - Example 2) Add the related fields to your migration file - Example - Make sure the field type is set to json or text : $table->json('field_name')->nullable(); Let's say you want to add