Multiple Link fields in repeatable item group

Permalink Browser Info Environment
Hello,

I noticed that using a Link field twice in a repeatable item group doesn't work.

That's because the following code is generated in the auto.js file:

var pageSelector = $(newField).find('.link-ft');
        if ($(pageSelector).length > 0) {
            $(pageSelector).concretePageSelector({inputName: $(pageSelector).attr('data-input-name'), cID : $(pageSelector).attr('data-cID')});
        }var pageSelector = $(newField).find('.link-ft');
        if ($(pageSelector).length > 0) {
            $(pageSelector).concretePageSelector({inputName: $(pageSelector).attr('data-input-name'), cID : $(pageSelector).attr('data-cID')});
        }


This results in two page selectors for each link field. The correct code is:

var pageSelector = $(newField).find('.link-ft');
        if ($(pageSelector).length > 0) {
            $(pageSelector).each(function() {
                $(this).concretePageSelector({inputName: $(this).attr('data-input-name'), cID : $(this).attr('data-cID')});    
            });
        }


Hope this helps!

Type: Discussion
Status: Resolved
Guido
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Guido,

Thanks for pointing this out! With Block Designer 2.4.3, this should be fixed (available now). If you can confirm this works, your fix worked! :D

Awesome to see such a detailed explanation/report :)

Kind regards,

Ramon

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.9
Version Installed - 5.7.5.9
Database Version - 20160615000000

# concrete5 Packages
Block Designer (2.4.1), Block Designer Pro (2.4.0), Manual Nav (2.1.1), Multi Page Selector Attribute (0.9).

# concrete5 Overrides
blocks/alila_content_block/icon.png, blocks/alila_content_block/edit.php, blocks/alila_content_block/composer.php, blocks/alila_content_block/view.php, blocks/alila_content_block/form.php, blocks/alila_content_block/config.json, blocks/alila_content_block/add.php, blocks/alila_content_block/controller.php, blocks/alila_content_block/db.xml, blocks/alila_content_block/templates/tripadvisor_review/view.php, blocks/alila_content_block/templates/tripadvisor_review, blocks/alila_content_block/templates, blocks/alila_content_block, blocks/manual_nav/templates/primary/view.php, blocks/manual_nav/templates/primary, blocks/manual_nav/templates/footer/view.php, blocks/manual_nav/templates/footer, blocks/manual_nav/templates/loyalty/view.php, blocks/manual_nav/templates/loyalty, blocks/manual_nav/templates/footer_bottom/view.php, blocks/manual_nav/templates/footer_bottom, blocks/manual_nav/templates/top/view.php, blocks/manual_nav/templates/top, blocks/manual_nav/templates, blocks/manual_nav, blocks/multiple_images/icon.png, blocks/multiple_images/edit.php, blocks/multiple_images/auto.js, blocks/multiple_images/composer.php, blocks/multiple_images/view.php, blocks/multiple_images/form.php, blocks/multiple_images/config.json, blocks/multiple_images/add.php, blocks/multiple_images/js_form/handlebars-v4.0.4.js, blocks/multiple_images/js_form/handlebars-helpers.js, blocks/multiple_images/js_form, blocks/multiple_images/controller.php, blocks/multiple_images/db.xml, blocks/multiple_images/templates/scroll/view.php, blocks/multiple_images/templates/scroll, blocks/multiple_images/templates, blocks/multiple_images/css_form/repeatable-ft.form.css, blocks/multiple_images/css_form, blocks/multiple_images, blocks/alila_review/icon.png, blocks/alila_review/edit.php, blocks/alila_review/composer.php, blocks/alila_review/view.php, blocks/alila_review/form.php, blocks/alila_review/config.json, blocks/alila_review/add.php, blocks/alila_review/controller.php, blocks/alila_review/db.xml, blocks/alila_review, blocks/alila_content_slideshow_block/icon.png, blocks/alila_content_slideshow_block/edit.php, blocks/alila_content_slideshow_block/auto.js, blocks/alila_content_slideshow_block/composer.php, blocks/alila_content_slideshow_block/view.php, blocks/alila_content_slideshow_block/form.php, blocks/alila_content_slideshow_block/config.json, blocks/alila_content_slideshow_block/add.php, blocks/alila_content_slideshow_block/js_form/handlebars-v4.0.4.js, blocks/alila_content_slideshow_block/js_form/handlebars-helpers.js, blocks/alila_content_slideshow_block/js_form, blocks/alila_content_slideshow_block/controller.php, blocks/alila_content_slideshow_block/db.xml, blocks/alila_content_slideshow_block/css_form/repeatable-ft.form.css, blocks/alila_content_slideshow_block/css_form, blocks/alila_content_slideshow_block, blocks/switch_language/templates/alila/view.php, blocks/switch_language/templates/alila, blocks/switch_language/templates, blocks/switch_language, blocks/page_selector/icon.png, blocks/page_selector/edit.php, blocks/page_selector/composer.php, blocks/page_selector/view.php, blocks/page_selector/form.php, blocks/page_selector/config.json, blocks/page_selector/add.php, blocks/page_selector/controller.php, blocks/page_selector/db.xml, blocks/page_selector, blocks/html/view.php, blocks/html/templates/features/view.php, blocks/html/templates/features, blocks/html/templates, blocks/html, blocks/page_selector_repeatable/icon.png, blocks/page_selector_repeatable/edit.php, blocks/page_selector_repeatable/auto.js, blocks/page_selector_repeatable/composer.php, blocks/page_selector_repeatable/view.php, blocks/page_selector_repeatable/form.php, blocks/page_selector_repeatable/config.json, blocks/page_selector_repeatable/add.php, blocks/page_selector_repeatable/js_form/handlebars-v4.0.4.js, blocks/page_selector_repeatable/js_form/handlebars-helpers.js, blocks/page_selector_repeatable/js_form, blocks/page_selector_repeatable/controller.php, blocks/page_selector_repeatable/db.xml, blocks/page_selector_repeatable/css_form/repeatable-ft.form.css, blocks/page_selector_repeatable/css_form, blocks/page_selector_repeatable, blocks/content/templates/button/view.php, blocks/content/templates/button, blocks/content/templates, blocks/content, blocks/google_map/view.php, blocks/google_map, blocks/autonav/templates/footer_destinations/view.php, blocks/autonav/templates/footer_destinations, blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates, blocks/autonav, controllers/page_types/room.php, controllers/page_types/destinations.php, controllers/page_types/spa.php, controllers/page_types/property.php, controllers/page_types/restaurant.php, controllers/page_types, jobs/update_property_weather.php, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/site/ja_JP.mo, languages/site/zh_CN.po, languages/site/ja_JP.po, languages/site, themes/alila/elements/grid_section.php, themes/alila/elements/default_header.php, themes/alila/elements/share_icon.php, themes/alila/elements/footer_bottom.php, themes/alila/elements/footer.php, themes/alila/elements/header_top.php, themes/alila/elements/booking_panel.php, themes/alila/elements/header.php, themes/alila/elements/logo.php, themes/alila/elements/svg.php, themes/alila/elements, themes/alila/css/animations.css, themes/alila/css/editmode.css, themes/alila/css/admin.css, themes/alila/css/ie9-styles.css, themes/alila/css/main.css, themes/alila/css/main-cms.css, themes/alila/css, themes/alila/destinations.php, themes/alila/assets/icons/alila_checkmark_white.svg, themes/alila/assets/icons, themes/alila/assets/logos/discovery.png, themes/alila/assets/logos/destination-hotels.png, themes/alila/assets/logos/logos.svg, themes/alila/assets/logos/commune.png, themes/alila/assets/logos, themes/alila/assets, themes/alila/details.php, themes/alila/loyalty_enrollment.php, themes/alila/default.php, themes/alila/property.php, themes/alila/js/app.js, themes/alila/js/html5shiv.min.js, themes/alila/js, themes/alila/home.php, themes/alila/description.txt, themes/alila, src/Page/CustomPageList.php, src/Page, blocks/alila_content_block/icon.png, blocks/alila_content_block/edit.php, blocks/alila_content_block/composer.php, blocks/alila_content_block/view.php, blocks/alila_content_block/form.php, blocks/alila_content_block/config.json, blocks/alila_content_block/add.php, blocks/alila_content_block/controller.php, blocks/alila_content_block/db.xml, blocks/alila_content_block/templates/tripadvisor_review/view.php, blocks/alila_content_block/templates/tripadvisor_review, blocks/alila_content_block/templates, blocks/alila_content_block, blocks/manual_nav/templates/primary/view.php, blocks/manual_nav/templates/primary, blocks/manual_nav/templates/footer/view.php, blocks/manual_nav/templates/footer, blocks/manual_nav/templates/loyalty/view.php, blocks/manual_nav/templates/loyalty, blocks/manual_nav/templates/footer_bottom/view.php, blocks/manual_nav/templates/footer_bottom, blocks/manual_nav/templates/top/view.php, blocks/manual_nav/templates/top, blocks/manual_nav/templates, blocks/manual_nav, blocks/multiple_images/icon.png, blocks/multiple_images/edit.php, blocks/multiple_images/auto.js, blocks/multiple_images/composer.php, blocks/multiple_images/view.php, blocks/multiple_images/form.php, blocks/multiple_images/config.json, blocks/multiple_images/add.php, blocks/multiple_images/js_form/handlebars-v4.0.4.js, blocks/multiple_images/js_form/handlebars-helpers.js, blocks/multiple_images/js_form, blocks/multiple_images/controller.php, blocks/multiple_images/db.xml, blocks/multiple_images/templates/scroll/view.php, blocks/multiple_images/templates/scroll, blocks/multiple_images/templates, blocks/multiple_images/css_form/repeatable-ft.form.css, blocks/multiple_images/css_form, blocks/multiple_images, blocks/alila_review/icon.png, blocks/alila_review/edit.php, blocks/alila_review/composer.php, blocks/alila_review/view.php, blocks/alila_review/form.php, blocks/alila_review/config.json, blocks/alila_review/add.php, blocks/alila_review/controller.php, blocks/alila_review/db.xml, blocks/alila_review, blocks/alila_content_slideshow_block/icon.png, blocks/alila_content_slideshow_block/edit.php, blocks/alila_content_slideshow_block/auto.js, blocks/alila_content_slideshow_block/composer.php, blocks/alila_content_slideshow_block/view.php, blocks/alila_content_slideshow_block/form.php, blocks/alila_content_slideshow_block/config.json, blocks/alila_content_slideshow_block/add.php, blocks/alila_content_slideshow_block/js_form/handlebars-v4.0.4.js, blocks/alila_content_slideshow_block/js_form/handlebars-helpers.js, blocks/alila_content_slideshow_block/js_form, blocks/alila_content_slideshow_block/controller.php, blocks/alila_content_slideshow_block/db.xml, blocks/alila_content_slideshow_block/css_form/repeatable-ft.form.css, blocks/alila_content_slideshow_block/css_form, blocks/alila_content_slideshow_block, blocks/switch_language/templates/alila/view.php, blocks/switch_language/templates/alila, blocks/switch_language/templates, blocks/switch_language, blocks/page_selector/icon.png, blocks/page_selector/edit.php, blocks/page_selector/composer.php, blocks/page_selector/view.php, blocks/page_selector/form.php, blocks/page_selector/config.json, blocks/page_selector/add.php, blocks/page_selector/controller.php, blocks/page_selector/db.xml, blocks/page_selector, blocks/html/view.php, blocks/html/templates/features/view.php, blocks/html/templates/features, blocks/html/templates, blocks/html, blocks/page_selector_repeatable/icon.png, blocks/page_selector_repeatable/edit.php, blocks/page_selector_repeatable/auto.js, blocks/page_selector_repeatable/composer.php, blocks/page_selector_repeatable/view.php, blocks/page_selector_repeatable/form.php, blocks/page_selector_repeatable/config.json, blocks/page_selector_repeatable/add.php, blocks/page_selector_repeatable/js_form/handlebars-v4.0.4.js, blocks/page_selector_repeatable/js_form/handlebars-helpers.js, blocks/page_selector_repeatable/js_form, blocks/page_selector_repeatable/controller.php, blocks/page_selector_repeatable/db.xml, blocks/page_selector_repeatable/css_form/repeatable-ft.form.css, blocks/page_selector_repeatable/css_form, blocks/page_selector_repeatable, blocks/content/templates/button/view.php, blocks/content/templates/button, blocks/content/templates, blocks/content, blocks/google_map/view.php, blocks/google_map, blocks/autonav/templates/footer_destinations/view.php, blocks/autonav/templates/footer_destinations, blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates, blocks/autonav, controllers/page_types/room.php, controllers/page_types/destinations.php, controllers/page_types/spa.php, controllers/page_types/property.php, controllers/page_types/restaurant.php, controllers/page_types, jobs/update_property_weather.php, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/site/ja_JP.mo, languages/site/zh_CN.po, languages/site/ja_JP.po, languages/site, themes/alila/elements/grid_section.php, themes/alila/elements/default_header.php, themes/alila/elements/share_icon.php, themes/alila/elements/footer_bottom.php, themes/alila/elements/footer.php, themes/alila/elements/header_top.php, themes/alila/elements/booking_panel.php, themes/alila/elements/header.php, themes/alila/elements/logo.php, themes/alila/elements/svg.php, themes/alila/elements, themes/alila/css/animations.css, themes/alila/css/editmode.css, themes/alila/css/admin.css, themes/alila/css/ie9-styles.css, themes/alila/css/main.css, themes/alila/css/main-cms.css, themes/alila/css, themes/alila/destinations.php, themes/alila/assets/icons/alila_checkmark_white.svg, themes/alila/assets/icons, themes/alila/assets/logos/discovery.png, themes/alila/assets/logos/destination-hotels.png, themes/alila/assets/logos/logos.svg, themes/alila/assets/logos/commune.png, themes/alila/assets/logos, themes/alila/assets, themes/alila/details.php, themes/alila/loyalty_enrollment.php, themes/alila/default.php, themes/alila/property.php, themes/alila/js/app.js, themes/alila/js/html5shiv.min.js, themes/alila/js, themes/alila/home.php, themes/alila/description.txt, themes/alila, src/Page/CustomPageList.php, src/Page

# concrete5 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.7 (Ubuntu)

# Server API
apache2handler

# PHP Version
5.5.9-1ubuntu4.17

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.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 - 1440
soap.wsdl_cache_limit - 5
xdebug.max_nesting_level - 256
xdebug.max_stack_frames - -1
xdebug.var_display_max_children - 128
xdebug.var_display_max_data - 512
xdebug.var_display_max_depth - 3
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 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.