• Prior to Gutenberg, to add an additional editable content area on a page I would add a wp_editor to the page and then my user could add whatever content to that container that they needed to. Now I’m wanting to do something similar using Gutenberg. I have the main content area that the user can edit, adding blocks and such as needed. BUT – I want an additional container area that the user can add blocks to – separate from the main area. See the mockup in the link attached.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d love to be wrong here, but I don’t think that Gutenberg works that way. What you get to edit is the whole content area – but only the content area.

    But… I would love to be proven wrong on that becuase it’s one of the sticking points of me switching to it as well.

    Thread Starter IMD

    (@imd)

    well that’s a huge let down. I’ve searched everywhere I can think of to try to see if this is possible, or think of a way to get around it. I suppose in theory I could create a custom post type called “Sidebars” where a user could create a new ‘page’ for each sidebar they want. Then I could add a custom meta field to the regular pages that would allow the user to ‘assign’ a Sidebar CPT to a regular page. Basically enter the page ID of the Sidebar page into the meta field, in the template that outputs the page get the value of the meta, get the page content associated with that ID (the meta value) and then spit out the_content for the “sidebar” page that was created. Seems like a pain, but it could work.
    OR – just add a wp_editor into the pages which allows the user to do exactly what I want, but just using the TinyMCE editor instead of the blocks. That would be two different editing experiences for two different areas of the page. Not ideal either.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Create additional Blocks container’ is closed to new replies.