Criminus Member Licensed customer Yesterday at 11:13 PM #1 Hi, I am trying to inject a custom class in post_macro for staff members and I can't do it. I've tried a few suggestions found online but no luck. Can someone help me please?
Hi, I am trying to inject a custom class in post_macro for staff members and I can't do it. I've tried a few suggestions found online but no luck. Can someone help me please?
NikitOS Well-known member Licensed customer Yesterday at 11:23 PM #2 You can use $post.User.is_staff, for example, class="...{{ $post.User.is_staff ? ' my-class' : '' }}". Upvote 1 Downvote
You can use $post.User.is_staff, for example, class="...{{ $post.User.is_staff ? ' my-class' : '' }}".
Criminus Member Licensed customer Yesterday at 11:26 PM #3 NikitOS said: You can use $post.User.is_staff, for example, class="...{{ $post.User.is_staff ? ' my-class' : '' }}". Click to expand... Thank you. I just realised I was editing the deleted post macro Your code works! Upvote 0 Downvote
NikitOS said: You can use $post.User.is_staff, for example, class="...{{ $post.User.is_staff ? ' my-class' : '' }}". Click to expand... Thank you. I just realised I was editing the deleted post macro Your code works!