Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 439 Bytes

File metadata and controls

20 lines (15 loc) · 439 Bytes

Craft Didread

A plugin to add some sort of inbox-functionality to Craft CMS.

Usage

To check if a user has read the entry:

{% set isRead = craft.didread.user(currentUser).hasReadEntry(entry) %}

To mark the entry as read:

{% set asRead = craft.didread.user(currentUser).markAsRead(entry) %}

To mark the entry as unread:

{% set asUnread = craft.didread.user(currentUser).markAsUnread(entry) %}