From 8492965f0e6c7ea55618de3de514f17a8d104290 Mon Sep 17 00:00:00 2001 From: "Creativeorange V.O.F." Date: Thu, 11 Jun 2015 13:50:29 +0200 Subject: [PATCH] Update readme.md --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 9030018..341aa4e 100644 --- a/readme.md +++ b/readme.md @@ -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) %} ```