The parent logic for finding the element within a block list also scopes it to that element type.
prop = "[data-element='property-" + parentPropertyAlias + els[i].trim() + "']";
However, although block grids do not have their data-element attribute prefixed like in block grid (so the logic still works) any items outside of that block with the same alias will get shown/hidden by CD.
For example, create a document type with a block grid and a property with the alias title. Create an element inside the block grid with a property title and a CD property that shows/hides title. Hiding the title inside the block grid element will also hide the property on the parent document.
The parent logic for finding the element within a block list also scopes it to that element type.
However, although block grids do not have their
data-elementattribute prefixed like in block grid (so the logic still works) any items outside of that block with the same alias will get shown/hidden by CD.For example, create a document type with a block grid and a property with the alias
title. Create an element inside the block grid with a propertytitleand a CD property that shows/hides title. Hiding the title inside the block grid element will also hide the property on the parent document.