Issues adding tabs or accordion sections / configuring existing ones

Created on 28 September 2022, almost 2 years ago
Updated 22 December 2023, 6 months ago

Problem/Motivation

Since updating to Drupal 9.4.6 adding new sections in layout builder of type Tabs or Accordion throws Ajax error
Drupal.AjaxError message:
"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /layout_builder/configure/section/overrides/node.77/4\nStatusText: parsererror\nResponseText: "
name: "AjaxError"

Also configuring previous sections throws similar errors.
Drag and drop existing blocks is also not possible.

Steps to reproduce

Install the module and try adding sections, editing or reordering.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia dmitry.mikhailov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada liquidcms

    I see that the blocks added to a lb_tabs section are not draggable. Not sure if this is just missing (I recall when we made a custom layout section we had to add something to allow blocks to be draggable) or its become broken (sorry, first time using this module).

    Unclear what I could post though as there is no errors, php or js. Blocks in that section are simply not draggable. I have other sections in same layout of std 1 column bs type and blocks drag fine there.

  • πŸ‡¨πŸ‡¦Canada liquidcms

    Not sure why this isn't an issue for everyone, is it possibly theme specific?

    We have a BS3 based theme and D9.5 and for us the blocks placed in a Tabs section are not draggable. This patch adds the missing part to the tabs layout file to fix this.

  • πŸ‡΅πŸ‡ΉPortugal lolgm

    Correction regarding patch #4.

    Twig 3 no longer supports the for format:
    {% for .... if ... %}

    The attached patch fixes this.

Production build 0.69.0 2024