-
Notifications
You must be signed in to change notification settings - Fork 23
Status CSS Class Tokens
John Henley edited this page Oct 2, 2024
·
2 revisions
Three new tokens added to return a CSS class based on status of forum, topic, and/or post.
-
[FORUM:STATUSCSSCLASS]- Can be used inForum Viewtemplate -
[FORUMTOPIC:STATUSCSSCLASS]- Can be used inForum ViewandTopics Viewtemplate -
[FORUMPOST:STATUSCSSCLASS]- Can be used inForum View,Topics Viewtemplate, andTopic Viewtemplate
[FORUM:STATUSCSSCLASS] gets replaced with:
-
dcf-forumstatus-no-access(you have "view" but not "read" access--should just remove one but preserved for legacy) -
dcf-forumstatus-no-topics(forum is empty) -
dcf-forumstatus-new-topics(last post in forum > user's last read post) -
dcf-forumstatus-unread-topics(user has read newer posts but hasn't read every topic) -
dcf-forumstatus-all-topics-read(user has read every topic in forum)
[FORUMTOPIC:STATUSCSSCLASS] gets replaced with:
-
dcf-topicstatus-no-access(user can see that post was made but can't read it; has "view" but not "read" access--Note: should probably just remove one but this is to support legacy) -
dcf-topicstatus-new(post > user's last read post; user hasn't read at all or may have read original post and earlier replies but there are new replies) -
dcf-topicstatus-unread(user hasn't read at all) -
dcf-topicstatus-read(user is up-to-date on topic and any replies) -
dcf-topicstatus-authored(user is the one who created it)
Note: This may result in multiple variations such as unread + authored.
[FORUMPOST:STATUSCSSCLASS] gets replaced with:
- 'dcf-poststatus-no-access' (user can see that post was made but can't read it; has "view" but not "read" access--Note: should probably just remove one but this is to support legacy)
- 'dcf-poststatus-new' (post/reply > user's last read post)
- 'dcf-poststatus-unread' (user hasn't read)
- 'dcf-poststatus-read'
- 'dcf-poststatus-authored' (user is the one who created it)
Note: This may result in multiple variations such as unread + authored.
This module is the official forums module for DNN and is used on the official DNN CMS Community website.
- Forums
- Email Notifications
- Polls
- Tags
- Categories
- Attachments
- Avatar injection (new in 9.1)
- Recycle Bin (new in 9.1)
- Badges (new in 9.2)
- User Mentions (new in 9.3)