-
Notifications
You must be signed in to change notification settings - Fork 569
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Block with Slideshow Component Won't Save #205
Comments
Hi @jkhamler have you configured the crops in config/twill.php? For my custom image blocks I use this
|
Hi @tbrasington I've added this and it makes no difference. The problem seems to be that nothing is persisting in the database, even though the payload seems OK. Will just trace through the controller action and see what's going on. Any tips would be much appreciated - thanks all. |
Just to check you renamed galley to slideshow? Other things I stumbled on was using local storage over aws. |
Hi @tbrasington, Actually I just renamed slideshow to gallery to be consistent with your config. I just spend the past hour grappling with XDebug config (finally got it working) so I should be able to see what's going on. For reference, my 'gallery' block is as simple as this:
|
Hi @jkhamler , Could you confirm the The other thing is, does the Ajax call succeed when you clicked the update button? |
Hi @yanhao-li Ah. My 'crops' was out by one level on the config array, but I put it in the right place, cleared the config cache and alas no change. Here is my twill/config.php:
By 'update button' do you mean the 'Save as Draft' button? |
I'm not getting any errors but nothing is persisting in the 'mediables' table. Any suggestions would be highly appreciated - thanks guys! |
Do other types of block save? |
@tbrasington thanks for coming back to me - yep no probs with the other blocks, including repeaters! |
Could you upload another request payload screenshot as you did in the earlier reply? |
Ok, last few debugging questions
|
Guys, I’m loving the support - thanks so much. Will have to get back to you in the morning as I’m home for the evening without a computer. Cheers! Jon |
Hi guys, It's sorted - I was just missing the 'gallery' section from the crops.
|
Hi @ifox @yanhao-li
I've had this problem for a while - not sure if there is a bug. I've created a brand new block called 'slideshow' which contains a single form element:
I'm able to select images but then nothing saves or writes to the DB, so if I refresh my page then the images have been lost. Is there something I'm missing?
The text was updated successfully, but these errors were encountered: