Feature Request: TV Groups or Rows in the Manager

Whenever MODx 4 is getting worked on I’d like to see a way of grouping TVs into rows with the ability to have more than one row. This would be helpful for showing things like X and Y coordinate fields side by side or a mailing address section with City, State, Zip fields on a single row.

I don’t know if this could be implemented simply as another Template Variable with an input type of group – sort of like how Content Blocks has special Nested Layout blocks – or if it should be a dedicated TV Group that would be created in the resource tree. The latter would give a visual representation in the tree, but it would need to be different than a category.

Either way the primary features I envision would be:

  • The group itself has it’s own sort order number.
  • A title field that would display at the top of the group.
  • A table housing the TVs with: row number, TV name, field width.

When displayed in the manager a group might have a slightly darker background or something to separate it from other TVs. Horizontal ordering would be controlled by a TV’s own sort order number.

A standard street address group might be defined like this:

  • Title: Mailing Address
  • Row: 1, tv_firstname, 50%;
  • Row: 1, tv_lastname, 50%;
  • Row: 2, tv_address1, 100%;
  • Row: 3, tv_address2, 100%;
  • Row: 4, tv_city, 50%;
  • Row: 4, tv_state, 15%;
  • Row: 4, tv_zip, 35%;

That would be a great feature to include in the next release!

I think MODX4 is far too long. Looking at how Kirby CMS handles fields, there was a headline/gap field and every field could have a custom width.

Perhaps this would be easier to implement and solve such problems?

#modxroadmap