I foolishly assigned a -1 value to a region z-index because I thought it would’ve been faster than changing several 0 layers. I didn’t realize that this was a big no-no. At first it disappeared but then I can see it again if i remove background color/image. However, I can’t edit that -1 layer at all.
Attempting to delete the layout returns as error “Layer must be 0 or a positive number”. Retire works fine.
I’ve gone through deleted everything else from that layout and still cannot edit the -1 layer or delete the layout.
Is there a way for me to force delete a layout or edit a layer with a negative z-index?
You should not be able to set the z-index to negative value (at least in 1.8.2, there was a bug about it in 1.8.1)
I’d expect you to see ‘Layer must be 0 or a positive number’ message when you try to assign negative z-index, unless you’ve set it in 1.8.1?
As for force delete or edit, I can’t recreate it, since I can’t set the negative z-index on my dev cms now, but I guess you should be able to edit it via API.
Something like
GET {{url}}/api/layout?layout=&embed=regions
You can put your layout name after layout= to filter the results
in response of that call you get the affected regionId