Image in repeatable is not work

Permalink Browser Info Environment
Image in repeatable is not work

2 Attachments

Type: Ticket
Status: Resolved
kosdesign
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

Can you share your config.json of this block type in question, so I can replicate your situation?

Thanks in advance.

Kind regards
Ramon
kosdesign replied on at Permalink Reply
kosdesign
{"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>


It's probably a problem with form.php

if i copy form.php form /concrete/blocks/image_slider then i can select image
ramonleenders replied on at Permalink Reply
ramonleenders
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
VidalThemes replied on at Permalink Reply
VidalThemes
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
ramonleenders replied on at Permalink Reply
ramonleenders
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
VidalThemes replied on at Permalink Reply
VidalThemes
Hi Ramon,

Thanks for the reply, I have sent you a PM.

Best regards

David
mashborn replied on at Permalink Reply
mashborn
Hi,
we're facing the same problem.
Is there any manual workaround possible?
Maybe to enter the value into the database by hand?!?

Michael
ramonleenders replied on at Permalink Reply
ramonleenders
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
ramonleenders replied on at Permalink Reply
ramonleenders
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

concrete5 Environment Information

# Concrete Version
Core Version - 9.0.0
Version Installed - 9.0.0
Database Version - 20211028000000

# Database Information
Version: 5.7.33-0ubuntu0.16.04.1-log
SQL Mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Block Designer (3.1.2), Block Designer Pro (3.0.0), Minify HTML (2.0.0)

# Concrete Overrides
blocks/page_list/templates/list.php, blocks/page_list/templates, blocks/page_list, blocks/autonav/templates/header_menu/view.php, blocks/autonav/templates/header_menu/view.css, blocks/autonav/templates/header_menu/view.js, blocks/autonav/templates/header_menu, blocks/autonav/templates, blocks/autonav/view.php, blocks/autonav, blocks/form/view.php, blocks/form/controller.php, blocks/form, blocks/block_content/templates, blocks/block_content/css_form/repeatable-ft.form.css, blocks/block_content/css_form, blocks/block_content/add.php, blocks/block_content/js_form/handlebars-v4.0.4.js, blocks/block_content/js_form/handlebars-helpers.js, blocks/block_content/js_form, blocks/block_content/icon.png, blocks/block_content/form.php, blocks/block_content/composer.php, blocks/block_content/view.php, blocks/block_content/controller.php, blocks/block_content/auto.js, blocks/block_content/config.json, blocks/block_content/db.xml, blocks/block_content/edit.php, blocks/block_content, blocks/block_content_pro/templates, blocks/block_content_pro/css_form/repeatable-ft.form.css, blocks/block_content_pro/css_form, blocks/block_content_pro/add.php, blocks/block_content_pro/js_form/handlebars-v4.0.4.js, blocks/block_content_pro/js_form/handlebars-helpers.js, blocks/block_content_pro/js_form, blocks/block_content_pro/icon.png, blocks/block_content_pro/form.php, blocks/block_content_pro/composer.php, blocks/block_content_pro/view.php, blocks/block_content_pro/controller.php, blocks/block_content_pro/auto.js, blocks/block_content_pro/fastprint_apps.php, blocks/block_content_pro/config.json, blocks/block_content_pro/db.xml, blocks/block_content_pro/edit.php, blocks/block_content_pro, blocks/kos_map/add.php, blocks/kos_map/icon.png, blocks/kos_map/form.php, blocks/kos_map/composer.php, blocks/kos_map/view.php, blocks/kos_map/controller.php, blocks/kos_map/config.json, blocks/kos_map/db.xml, blocks/kos_map/edit.php, blocks/kos_map, blocks/link/css_form/repeatable-ft.form.css, blocks/link/css_form, blocks/link/add.php, blocks/link/js_form/handlebars-v4.0.4.js, blocks/link/js_form/handlebars-helpers.js, blocks/link/js_form, blocks/link/icon.png, blocks/link/form.php, blocks/link/composer.php, blocks/link/view.php, blocks/link/controller.php, blocks/link/auto.js, blocks/link/config.json, blocks/link/db.xml, blocks/link/edit.php, blocks/link, controllers/page_types/search.php, controllers/page_types/page_global.php, controllers/page_types, controllers/single_page/dashboard/reports.php, controllers/single_page/dashboard/reports/forms.php, controllers/single_page/dashboard/reports, controllers/single_page/dashboard, controllers/single_page, themes/kos/privacy_policy.php, themes/kos/detect_ie.php, themes/kos/fonts/Montserrat-Bold.ttf, themes/kos/fonts/Montserrat-SemiBold.eot, themes/kos/fonts/Montserrat-Regular.svg, themes/kos/fonts/Montserrat-Regular.woff, themes/kos/fonts/Montserrat-Bold.eot, themes/kos/fonts/Montserrat-Bold.woff, themes/kos/fonts/Montserrat-Bold.woff2, themes/kos/fonts/Montserrat-Medium.svg, themes/kos/fonts/Montserrat-Regular.ttf, themes/kos/fonts/Montserrat-Medium.woff2, themes/kos/fonts/Montserrat-Medium.woff, themes/kos/fonts/Montserrat-Regular.woff2, themes/kos/fonts/Montserrat-SemiBold.svg, themes/kos/fonts/Montserrat-Bold.svg, themes/kos/fonts/Montserrat-SemiBold.woff2, themes/kos/fonts/Montserrat-SemiBold.ttf, themes/kos/fonts/Montserrat-Medium.ttf, themes/kos/fonts/Montserrat-Regular.eot, themes/kos/fonts/Montserrat-SemiBold.woff, themes/kos/fonts/Montserrat-Medium.eot, themes/kos/fonts, themes/kos/thumbnail.png, themes/kos/page_not_found.php, themes/kos/press_detail.php, themes/kos/page_forbidden.php, themes/kos/news_detail.php, themes/kos/js/global.js, themes/kos/js/init.js, themes/kos/js/script.js, themes/kos/js, themes/kos/view.php, themes/kos/search_result.php, themes/kos/scss/search_result.scss, themes/kos/scss/global.scss, themes/kos/scss/homepage.scss, themes/kos/scss/detect_ie.scss, themes/kos/scss/assets/_fonts.scss, themes/kos/scss/assets/default/_jquery.bxslider.scss, themes/kos/scss/assets/default/_default.scss, themes/kos/scss/assets/default/_slick.scss, themes/kos/scss/assets/default/_jquery.fancybox.scss, themes/kos/scss/assets/default/_cs-skin-border.scss, themes/kos/scss/assets/default/_lightslider.scss, themes/kos/scss/assets/default/_bootstrap.scss, themes/kos/scss/assets/default/_cs-select.scss, themes/kos/scss/assets/default, themes/kos/scss/assets/_variables.scss, themes/kos/scss/assets, themes/kos/scss, themes/kos/page_theme.php, themes/kos/brand_detail.php, themes/kos/press.php, themes/kos/homepage.php, themes/kos/libs/jquery.cookie.js, themes/kos/libs/jquery.lazy.min.js, themes/kos/libs/csselect/cs-skin-border.css, themes/kos/libs/csselect/classie.js, themes/kos/libs/csselect/selectFx.js, themes/kos/libs/csselect/cs-select.css, themes/kos/libs/csselect, themes/kos/libs/bxslider/jquery.bxslider.js, themes/kos/libs/bxslider/jquery.bxslider.css, themes/kos/libs/bxslider, themes/kos/libs/fancybox/jquery.fancybox.css, themes/kos/libs/fancybox/jquery.fancybox.js, themes/kos/libs/fancybox, themes/kos/libs/skrollr.min.js, themes/kos/libs/jquery.isotope.js, themes/kos/libs/scrollreveal.js, themes/kos/libs/lightslider/lightslider.css, themes/kos/libs/lightslider/lightslider.js, themes/kos/libs/lightslider, themes/kos/libs/jquery.validate.min.js, themes/kos/libs/sticky-kit.js, themes/kos/libs/jquery.enllax.js, themes/kos/libs/jquery-ias.js, themes/kos/libs/slick/slick.js, themes/kos/libs/slick/slick.css, themes/kos/libs/slick, themes/kos/libs, themes/kos/default.php, themes/kos/contact.php, themes/kos/news.php, themes/kos/css/page_not_found.css, themes/kos/css/global.css, themes/kos/css/homepage.css, themes/kos/css, themes/kos/images/Microsoft-edge.svg, themes/kos/images/Chrome.svg, themes/kos/images/logo.png, themes/kos/images/detect-ie-img.svg, themes/kos/images/404.png, themes/kos/images/Firefox.svg, themes/kos/images/Safari.svg, themes/kos/images/photo--404.jpeg, themes/kos/images, themes/kos/about.php, themes/kos/full.php, themes/kos/elements/header.php, themes/kos/elements/function.php, themes/kos/elements/header_top.php, themes/kos/elements/footer_bottom.php, themes/kos/elements/footer.php, themes/kos/elements, themes/kos/left_sidebar.php, themes/kos

# Concrete Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.51 (Unix) OpenSSL/1.0.2g

# Server API
fpm-fcgi

# PHP Version
7.4.25

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 5000
memory_limit - 256M
post_max_size - 1024M
upload_max_filesize - 512M
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.