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

8
  • This is definitely a feature request, it's not possible to make a modification like this to the control panel. (Even with a plugin, this may be impossible). Please post feature requests on Google+ or directly email [email protected] (more info here)
    – Lindsey D
    Aug 5, 2014 at 16:15
  • 1
    Matrix Colors plugin for Craft CMS would help, wouldn't it? Aug 5, 2014 at 17:41
  • Great suggestion @MarionNewlevant! Ironically, I hadn't even thought of that. @JamieWade, you may also be able to work out some complex JavaScript to pull this off using the Control Panel JS plugin (but honestly, Marion's solution is better & far easier).
    – Lindsey D
    Aug 5, 2014 at 22:59
  • @MarionNewlevant thanks for that, I'll definitely check it out.
    – Jamie Wade
    Aug 6, 2014 at 6:20
  • @Lindsey now that we know that answering the question is possible, I think we should reopen here.
    – carlcs
    Aug 6, 2014 at 7:48

2 Answers 2

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!

4

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.