4

Is it possible to output the block type name in Craft for each matrix block in your field?

Currently Craft just lists the name of each field within the block, but we are using generic field names (Width, depth etc), so in those instances there is no clear context for which block type is being used.

See the attached screenshot to see what I mean. I have just shown the 'Footprint' block type, but with the list of generic fields there is no way of clearly seeing this is actually 'Footprint', which can make things difficult for our client when they are managing content.

The second screenshot shows what I am trying to achieve, so it simply adds "Type: Footprint" to the start of the field list. Thanks!

Before

After

Jamie Wade
  • 3,644
  • 2
  • 16
  • 32

2 Answers2

6

The guys at Supercool have developed a Craft plugin that does exactly what I was after, and as a bonus it allows you to group matrix block types which is very handy.

UPDATE

As of Craft 2.3, matrix block titles are now shown as part of the core functionality, thanks P&T!

Jamie Wade
  • 3,644
  • 2
  • 16
  • 32
4

Matrix Colors plugin for Craft CMS would help. It lets you assign a different color for each block type.

Marion Newlevant
  • 12,047
  • 22
  • 55