• Resolved Insomnia88

    (@insomnia88)


    Hi,
    I am building an accordion custom block where I have nested children in a “wrapper” block that also have various nested blocks. The concept is like this

    <ul>// wrapper
    	<li> // sub-wrap: child of 'wrapper' using innerBlocks
    		... // various: children of 'sub-wrap' using innerBlocks
    	</li>
            ...
    </ul>

    My problem is that when I use InnerBlocks.Content in my wrapper save function I get the accumulated content of all <li>s. But I want to have inner.content for each one of them. How can I achieve this?
    I started by traversing the data.storage and re-transfering every child object back to html and puzzle them together but this is just insane and can’t be the solution.

    • This topic was modified 5 years, 4 months ago by Insomnia88.
    • This topic was modified 5 years, 4 months ago by Insomnia88.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Insomnia88

    (@insomnia88)

    I had an error in my concept, nothing about the code. Can be deleted.

    • This reply was modified 5 years, 4 months ago by Jan Dembowski.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Reads, removed tag from “Report this topic”*

    We don’t remove topics for that reason. You’ve marked your topic “resolved” so there is no further action needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gutenberg Block inner content for each child?’ is closed to new replies.