Jump to content

Add getNewComment link to #comments-url in blogs


TSP

Recommended Posts

Hello, 

Could you make the URL to the comments area go to the first unread comment instead of your current link? I'm quite tired of having to maintain my own template edits in this area. 

Your link is for example: 

<li><a href='{$entry->url()}#comments' title='{lang="view_comments"}' class='ipsType_light'>{lang="num_comments" pluralize="$entry->num_comments"}</a></li>

Without the following custom template edit instead, our members complain a lot: 

<li><a href='{{if \IPS\Member::loggedIn()->member_id}}{$entry->url('getNewComment')}{{else}}{$entry->url()}#comments{{endif}}' title='{lang="view_comments"}' class='ipsType_light'><i class='fa fa-comment'></i> {lang="num_comments" pluralize="$entry->num_comments"}</a></li>

Thanks for considering improving how the comment links in the blog area works. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...