angell-co / Pimp-My-Matrix

A plugin for Craft that lets you enhance a busy Matrix field and organise block types
MIT License
60 stars 5 forks source link

Nested Matrix in SuperTable has hidden fields. #40

Open joshangell opened 8 years ago

joshangell commented 8 years ago

When there is a block-specific field layout that contains a SuperTable / Matrix combo the fields of the nested Matrix are hidden.

aladrach commented 8 years ago

Thanks for opening this. I've temporarily worked around this with a bit of CSS.

roberttolton commented 8 years ago

@aladrach What was the CSS fix you applied?

roberttolton commented 8 years ago

Removing field layouts for all parent and child block types in a Matrix > SuperTable > Matrix setup removes the issue of the second nested Matrix blocks being hidden by default when editing an entry.

Below is a screenshot of an affected page:

screen shot 2016-05-26 at 11 41 07

Below is a screenshot once all field layouts are removed:

screen shot 2016-05-26 at 11 58 03

(page is continued off the bottom of the screenshot)

Obviously this isn't desired behaviour, as you loose all the benefits of Pimp My Matrix.

aladrach commented 8 years ago

@fuelintegrated I'm using the following to override the style and fix the layout:

.matrixblock .fields {
    display: block !important;
}
.matrixblock.collapsed .fields {
    display: none !important;
}
roberttolton commented 8 years ago

@aladrach Thanks for the CSS

If anyone is interested, I managed to recreate the setup I wanted, without any UI bugs using the Neo field type for the outermost field, and Pimp My Matrix for the innermost 'blocks' in this screenshot:

image 2016-05-26 at 2 51 03 pm