Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Creativeorange V.O.F. committed Jun 11, 2015
1 parent 8874da7 commit 8492965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ A plugin to add some sort of inbox-functionality to Craft CMS.

To check if a user has read the entry:
```twig
{{ craft.didread.user(currentUser).hasReadEntry(entry) }}
{% set isRead = craft.didread.user(currentUser).hasReadEntry(entry) %}
```

To mark the entry as read:
```twig
{{ craft.didread.user(currentUser).markAsRead(entry) }}
{% set asRead = craft.didread.user(currentUser).markAsRead(entry) %}
```

To mark the entry as unread:
```twig
{{ craft.didread.user(currentUser).markAsUnread(entry) }}
{% set asUnread = craft.didread.user(currentUser).markAsUnread(entry) %}
```

0 comments on commit 8492965

Please sign in to comment.