Skip to content

Make Region IDs in Customization Forms more understandable #16054

@Ruslan-Aleev

Description

@Ruslan-Aleev

Feature request

Summary

In the Customization Forms regions ID has incomprehensible logic, as it seems to me.

For example:

  • modx-resource-settings and modx-page-settings, why 2? In my opinion modx-resource-settings is not used at all.
  • There are seemingly clear areas - modx-resource-main-left, modx-resource-main-right; modx-page-settings-left and modx-page-settings-right. But then an incomprehensible fragmentation begins: modx-resource-main-right-top, modx-resource-main-right-middle and modx-resource-main-right-bottom, although the region on the left does not have splitting into top/middle/bottom.
    modx-page-settings-* has modx-page-settings-box-left and modx-page-settings-box-right - now boxes appeared.

Why is it so difficult?

Suggested solution(s)

I propose to create a fixed number of regions (2 columns by 3 rows) for "Resource", "Settings" and "TV":

modx-resource-main
-- modx-resource-main-left
--- modx-resource-main-left-top
--- modx-resource-main-left-middle
--- modx-resource-main-left-bottom
-- modx-resource-main-right
--- modx-resource-main-right-top
--- modx-resource-main-right-middle
--- modx-resource-main-right-bottom

modx-resource-settings
-- modx-resource-settings-left
--- modx-resource-settings-left-top
--- modx-resource-settings-left-middle
--- modx-resource-settings-left-bottom
-- modx-resource-settings-right
--- modx-resource-settings-right-top
--- modx-resource-settings-right-middle
--- modx-resource-settings-right-bottom

modx-resource-tv
-- modx-resource-tv-left
--- modx-resource-tv-left-top
--- modx-resource-tv-left-middle
--- modx-resource-tv-left-bottom
-- modx-resource-tv-right
--- modx-resource-tv-right-top
--- modx-resource-tv-right-middle
--- modx-resource-tv-right-bottom

Or we can make 3 columns by 3 rows (left-to-right: left, middle, right; top-down: top, middle, bottom).

Related issue(s)/PR(s)

#13968
#16052
#14226

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-fcWork related to form customization rulesfeatureRequest about implementing a brand new function or possibility.proposalProposal about improvement aka RFC. Need to be discussed before start implementation.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions