PHPackages                             mod-lab/craft-restrict-entry-type-quantity - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mod-lab/craft-restrict-entry-type-quantity

ActiveCraft-plugin

mod-lab/craft-restrict-entry-type-quantity
==========================================

Limit how many entries of a given entry type can exist per site in Craft CMS

v1.0.1(1mo ago)038↓75%MITPHPPHP &gt;=8.2

Since Jul 15Pushed 1mo agoCompare

[ Source](https://github.com/Minds-On-Design-Lab/restrict-entry-type-quantity)[ Packagist](https://packagist.org/packages/mod-lab/craft-restrict-entry-type-quantity)[ RSS](/packages/mod-lab-craft-restrict-entry-type-quantity/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Restrict Entry Type Quantity
============================

[](#restrict-entry-type-quantity)

Restricts how many entries of a given entry type may exist per site. Useful when entry types represent page designs and some pages (e.g. a Homepage) should only ever be built once.

Restrictions are controlled entirely from a config file — there is no control panel settings UI.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.10.0 or later, and PHP 8.2 or later.

Installation
------------

[](#installation)

```
composer require mod-lab/craft-restrict-entry-type-quantity
php craft plugin/install restrict-entry-type-quantity
```

Configuration
-------------

[](#configuration)

Create `config/restrict-entry-type-quantity.php` in your Craft project and map entry type handles to the maximum number of entries allowed:

```
