<p>Reading your description I see no reason to not use all three fields in a single matrix block. If you need additional control (e.g. for positioning the title), you could add another field to that block that allows you to set your settings (e.g. a dropdown with "Title left" / "Title right" options).</p>

<p>If you really need a per block type limit (now), you could try fork the matrix field as a plugin and add the necessary conditionals to the JS.</p>

CC BY-SA 3.0
2014-11-25T15:16:28.583Z
Thank you. The asset would need a field for title or label as well and maybe one or two more. I'll look into the plugin route.
Goldyberg
CC BY-SA 3.0
2014-11-25T15:20:26.353Z
You know that you can add [Asset Meta Fields](http://buildwithcraft.com/docs/assets#asset-meta-fields) to your assets, @Goldyberg?
carlcs
CC BY-SA 3.0
2014-11-25T15:30:33.527Z
I did not know this, first day of playing around. This might work. Thanks for your help.
Goldyberg
CC BY-SA 3.0
2014-11-25T14:52:42.293Z
2014-11-25T14:59:16.263Z
2014-11-25T14:59:16.263Z
carlcs
<p>I just published a plugin called <a href="https://github.com/mmikkel/limitblocktype" rel="noreferrer">Limit Block Type</a>, which adds the ability to limit Matrix blocks per block type.</p>

<p>There's also a <a href="https://craftcms.uservoice.com/forums/285221-feature-requests/suggestions/7192758-limit-matrix-blocks-per-block-type" rel="noreferrer">feature request</a> for adding this feature to core.</p>

CC BY-SA 3.0
2016-09-05T12:57:49.890Z
2016-09-05T12:57:49.890Z
Mats Mikkel Rummelhoff
<p>Currently it's possible to set a max block value for the collection of block types. However I have a case where it would be great if I could set block type limit. </p>

<p>For example I have a situation where I need a carousel matrix. A block type with assests for the carousel but also a heading and text block type describing the carousel. I want the assets block type to have x amount of repeatable entries but the description and title block type limited to 1.</p>

<p>How would you currently achieve this? Would it be worth requesting adding it to the roadmap?</p>

<matrix><block-types><blocks><limit>
Matrix max block type limit
# Matrix max block type limit

(Asked by: username_0 on 2014-11-25)

Currently it's possible to set a max block value for the collection of block types. However I have a case where it would be great if I could set block type limit.

For example I have a situation where I need a carousel matrix. A block type with assests for the carousel but also a heading and text block type describing the carousel. I want the assets block type to have x amount of repeatable entries but the description and title block type limited to 1.

How would you currently achieve this? Would it be worth requesting adding it to the roadmap?

**Tags:** matrix, block-types, blocks, limit


---

## 2 answers

### Answer by username_1 on 2014-11-25. Score: 2 | Accepted answer

Reading your description I see no reason to not use all three fields in a single matrix block. If you need additional control (e.g. for positioning the title), you could add another field to that block that allows you to set your settings (e.g. a dropdown with "Title left" / "Title right" options).

If you really need a per block type limit (now), you could try fork the matrix field as a plugin and add the necessary conditionals to the JS.

> **Comments:**
> **username_0**: Thank you. The asset would need a field for title or label as well and maybe one or two more. I'll look into the plugin route.  
> **username_1**: You know that you can add [Asset Meta Fields](http://buildwithcraft.com/docs/assets#asset-meta-fields) to your assets, @username_0?  
> **username_0**: I did not know this, first day of playing around. This might work. Thanks for your help.  

---

### Answer by username_2 on 2016-09-05. Score: 5

I just published a plugin called [Limit Block Type](https://github.com/mmikkel/limitblocktype), which adds the ability to limit Matrix blocks per block type.

There's also a [feature request](https://craftcms.uservoice.com/forums/285221-feature-requests/suggestions/7192758-limit-matrix-blocks-per-block-type) for adding this feature to core.


---

