Hi Russ,
I'm not sure if it's because of the template, but I'm running into a problem if I want to add the view count to my articles. I found this solution. I searched for this in the post_article_marcos:
Then I added this:
And the result is this. It works for one, not for the other and we've been messing with that layout so I figured it has probably got to do with some of our earlier changes?
I'm not sure if it's because of the template, but I'm running into a problem if I want to add the view count to my articles. I found this solution. I searched for this in the post_article_marcos:
<li><xf:avatar user="{$thread.User}" size="xxs" defaultname="{$thread.username}"/></li>
<li class="articlePreview-by">{{ phrase('by_user_x', {'name':$username}) }}</li>
Then I added this:
<li><dl class="pairs pairs--justified structItem-minor">
<dt>{{ phrase('views') }}</dt>
<dd>{{ $thread.discussion_type == 'redirect' ? '–' : ($thread.view_count > $thread.reply_count ? $thread.view_count|number_short : number_short($thread.reply_count+1)) }}</dd>
</dl></li>
And the result is this. It works for one, not for the other and we've been messing with that layout so I figured it has probably got to do with some of our earlier changes?