PHPackages                             thepixelage/craft-markasnew - 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. thepixelage/craft-markasnew

ActiveCraft-plugin

thepixelage/craft-markasnew
===========================

Mark As New is a Craft CMS plugin for marking content and products as new

4.0.5(1y ago)11.8kMITPHPPHP ^8.0

Since Apr 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/thepixelage/craft-markasnew)[ Packagist](https://packagist.org/packages/thepixelage/craft-markasnew)[ RSS](/packages/thepixelage-craft-markasnew/feed)WikiDiscussions develop-v4 Synced 4w ago

READMEChangelog (10)Dependencies (1)Versions (16)Used By (0)

Mark As New Plugin for Craft CMS
================================

[](#mark-as-new-plugin-for-craft-cms)

Mark As New is a Craft CMS/Craft Commerce plugin for marking native elements as new. It provides a date/time field in the edit pages of entries and products that can be used to specify a date/time until when the entry or product is to be considered as new.

Currently, only these native elements are supported:

- Entries (Craft CMS)
- Products (Craft Commerce)

Features
--------

[](#features)

### New Date/Time Field Edit Page in Control Panel

[](#new-datetime-field-edit-page-in-control-panel)

A **"Mark New Until"** date/time field is added to the right sidebar of entry editing and product editing pages in the control panel. If set, it specifies that the element is considered as new until the selected date/time.

For entries, the field is displayed after the Expiry Date field. For products, the field is displayed only after the product is saved, and is displayed after the Date Updated meta field.

#### Exclude/Include Entry Types or Product types

[](#excludeinclude-entry-types-or-product-types)

By default, the field is added to all entry types and product types. If you wish to exclude certain types from displaying the field, add a `markasnew.php` file to the `config` folder, and specify the following:

```
return [
    'excludeTypes' => [
        'entries.blog',
        'products.clothing',
    ],
];
```

The types are specified in the format of `.`. The namespaces `entries` and `products` indicate the type handle is an entry type handle and a product type handle respectively.

If you have a particularly long list of entry types and product types to exclude, you can instead use the `includeTypes` key:

```
return [
    'includeTypes' => [
        'entries.services',
        'products.bikes',
    ],
];
```

The above will hide the field from ***all*** types, except those specified under `includeTypes`.

### Element Attributes

[](#element-attributes)

Entries and products get two new attributes that can be accessed to find out if they are marked as new or to retrieve the date when it is no longer marked as new.

AttributeData type`markedAsNew``bool``markNewUntilDate``DateTime`There are also two element index table attributes corresponding to these two element attributes that can be used to display their columns in the entry listing or product listing in the control panel.

### Element Query

[](#element-query)

For example, to query a list of entries in the `blog` section that are marked as new:

```
{% set entries = craft.entries.section('blog').markedAsNew(true).all() %}
```

And to query a list of products that are marked as new:

```
{% set products = craft.products.markedAsNew(true).all() %}
```

### GraphQL

[](#graphql)

For example, to query a list of entries that are marked as new:

```
{
    entries(markedAsNew: true) {
        title
        markedAsNew
        markNewUntilDate
    }
}
```

And to query a list of products that are marked as new:

```
{
    products(markedAsNew: true) {
        title
        markedAsNew
        markNewUntilDate
    }
}
```

### Condition Rule Type

[](#condition-rule-type)

A custom condition rule type "Marked As New" is added to the `ElementCondition` so it can be used to filter the entry listing and product listing in control panel.

---

Created by [ThePixelAge](https://www.thepixelage.com)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance41

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~73 days

Recently: every ~233 days

Total

14

Last Release

528d ago

Major Versions

3.0.1 → 4.0.0-beta.22022-04-22

3.0.2 → 4.0.12022-05-05

3.0.3 → 4.0.22022-05-06

3.0.4 → 4.0.42022-05-11

3.0.5 → 4.0.52024-11-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/5db44c3e43bacce630bcc602e8043bba6e3cf676d275e7f92b3069458b0dc22c?d=identicon)[MrRonbot](/maintainers/MrRonbot)

---

Top Contributors

[![MrRonbot](https://avatars.githubusercontent.com/u/1901227?v=4)](https://github.com/MrRonbot "MrRonbot (32 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincraft-markasnew

### Embed Badge

![Health badge](/badges/thepixelage-craft-markasnew/health.svg)

```
[![Health](https://phpackages.com/badges/thepixelage-craft-markasnew/health.svg)](https://phpackages.com/packages/thepixelage-craft-markasnew)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
