Image in repeatable is not work
Permalink Browser Info Environment
Image in repeatable is not work
Type: | Ticket |
---|---|
Status: | Resolved |
{"view_css":"","view_js":"","block_name":"sss","block_description":"","block_type_set":0,"cache_block_output_lifetime":"","block_install":1,"ignore_page_theme_grid_framework_container":0,"cache_block_record":1,"cache_block_output":1,"cache_block_output_on_post":1,"cache_block_output_for_registered_users":1,"table_prefix":"","interface_width":"400","interface_height":"500","fields":{"1":{"type":"repeatable","label":"test","slug":"test","description":"","prefix":"","suffix":"","child_prefix":"","child_suffix":"","title_me":"","min_length":"","max_length":"","add_entry_text":""},"2":{"type":"image","label":"image test","slug":"imagetest","description":"","prefix":"","suffix":"","class":"","link":"","link_class":"","width":"","height":"","thumbnail_handle":"","repeatable":"1"},"3":{"type":"text_box","label":"text","slug":"text","description":"","prefix":"","suffix":"","max_length":"","placeholder":"","fallback_value":"","repeatable":""}},"block_handle":"sss","packages":{"block_designer":{"version":"3.4.0"},"block_designer_pro":{"version":"3.1.0"}}}
<?php defined("C5_EXECUTE") or die("Access Denied."); ?> <?php $tabs = [ ['form-basics-' . $identifier_getString, t('Basics'), true], ['form-test_items-' . $identifier_getString, t('test')] ]; echo Core::make('helper/concrete/ui')->tabs($tabs); ?> <div class="ccm-tab-content" id="ccm-tab-content-form-basics-<?php echo $identifier_getString; ?>"> <div class="form-group"> <?php echo $form->label($view->field('text'), t("text")); ?> <?php echo isset($btFieldsRequired) && in_array('text', $btFieldsRequired) ? '<small class="required">' . t('Required') . '</small>' : null; ?> <?php echo $form->text($view->field('text'), $text, array ( 'maxlength' => 255, )); ?> </div> </div>
Viewing 15 lines of 68 lines. View entire code block.
It's probably a problem with form.php
if i copy form.php form /concrete/blocks/image_slider then i can select image
Hi there,
Yes, it seems that there are crucial changes in version 9 which don't seem to play nicely. Therefore the image/file selector in version 9 won't work when using this in repeatable options. They actually WILL work when not using the repeatable option. It's quite a big change I can not make in a short amount of time, so for now I have to disappoint by saying it won't work yet. I will put it on my to do list and let you know when this will work.
Long version short, works until version 8, not with version 9 for now.
Kind regards
Ramon
Yes, it seems that there are crucial changes in version 9 which don't seem to play nicely. Therefore the image/file selector in version 9 won't work when using this in repeatable options. They actually WILL work when not using the repeatable option. It's quite a big change I can not make in a short amount of time, so for now I have to disappoint by saying it won't work yet. I will put it on my to do list and let you know when this will work.
Long version short, works until version 8, not with version 9 for now.
Kind regards
Ramon
Hi Ramon,
We are also experiencing this issue with a site we are updating to work with V9, is there any progress on this please?
Best regards
David
We are also experiencing this issue with a site we are updating to work with V9, is there any progress on this please?
Best regards
David
Hi David,
There is no update at the moment unfortunately. I wish there were helping hands, but that's not the case...
Kind regards
Ramon
There is no update at the moment unfortunately. I wish there were helping hands, but that's not the case...
Kind regards
Ramon
Hi Ramon,
Thanks for the reply, I have sent you a PM.
Best regards
David
Thanks for the reply, I have sent you a PM.
Best regards
David
Hi,
we're facing the same problem.
Is there any manual workaround possible?
Maybe to enter the value into the database by hand?!?
Michael
we're facing the same problem.
Is there any manual workaround possible?
Maybe to enter the value into the database by hand?!?
Michael
Hi Michael,
The template is currently trying to make a "File selector". What you could do is make it an "input" and there you input the ID of the file (so the number of the file, like 531). That would be the only needed change.
I still need to have a look at this, but currently so flooded.... Wish I had more time on my hands!
Kind regards
Ramon
The template is currently trying to make a "File selector". What you could do is make it an "input" and there you input the ID of the file (so the number of the file, like 531). That would be the only needed change.
I still need to have a look at this, but currently so flooded.... Wish I had more time on my hands!
Kind regards
Ramon
This will be fixed in version 4.0.0 which will be available later today. Only compatible with version 9.0.1 or higher of ConcreteCMS.
Kind regards
Ramon
Kind regards
Ramon
Can you share your config.json of this block type in question, so I can replicate your situation?
Thanks in advance.
Kind regards
Ramon