XF 2.3 Article forum list include links to unread and or last post

cwe

Well-known member
I created an article forum node. I have posted several articles in this node. When I view the article forum node, I see the article list with previews that contain an image, article title, article snippet, "view full article" link, date of article posting, and number of replies.

All links in this preview target the beginning of the article/thread. There is no link that goes to unread or the last reply. This vexes me terribly. I would love it if the 'number of replies' link and the article title link went to unread posts (or the last post if all replies have been read). Can anyone explain to me how to do this (I assume it's a simple template edit)?
 
Solution
Odd, isn't it??? ...

@Mr Lucky 's post led me to inspect the post_article_macros template. In there, I found line 212:
Code:
	<xf:set var="$linkUnread" value="{{ link('threads' . ($thread.isUnread() ? '/unread' : ''), $thread) }}" />
I edited it thusly:
Code:
	<xf:set var="$linkUnread" value="{{ link('threads' . ($thread.isUnread() ? '/unread' : '/latest'), $thread) }}" />

Now it works exactly as I wanted!
Odd, isn't it???
 
  • Like
Reactions: cwe
Odd, isn't it??? ...

@Mr Lucky 's post led me to inspect the post_article_macros template. In there, I found line 212:
Code:
	<xf:set var="$linkUnread" value="{{ link('threads' . ($thread.isUnread() ? '/unread' : ''), $thread) }}" />
I edited it thusly:
Code:
	<xf:set var="$linkUnread" value="{{ link('threads' . ($thread.isUnread() ? '/unread' : '/latest'), $thread) }}" />

Now it works exactly as I wanted!
 
Solution
Back
Top Bottom