Search the Community
Showing results for tags 'pagestatus'.
-
I can't figure this out if it is possible to make in PW natively :^) . How do you make unread posts/message/page for each user and make them marked as read for specific user when they view the page? I guess idea would be to create db where you save user ids and page ids and do the checks that way. Maybe someone has done other approaches. Ideas or advises are welcome.
-
I want to set the pagestatus of a admin-page to hidden when a user is logged in which has the role "company". I did this in the admin.php but it doesn't work. What I am missing? if(wire('user')->isSuperuser()){ $pages->get(1265)->removeStatus(Page::statusHidden); } else{ $pages->get(1265)->addStatus(Page::statusHidden); }
- 1 reply
-
- page
- pagestatus
-
(and 1 more)
Tagged with: