Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Maulik Posted December 30, 2017 Posted December 30, 2017 Hello, We want to change the "Posts" layout under "Profile" and make it same as "all activity" tab. Meaning we want to change the layout of "posts" so that it'll only so title and some content and not full posts. [ refer : http://prntscr.com/hu475x ] Can anyone help us ? Thanks.
newbie LAC Posted December 30, 2017 Posted December 30, 2017 Hello, Edit the template core - front - tables - commentRows This template uses also for other content so you should add conditions. 3 hours ago, Maulik said: and not full posts Find {$row->content()|raw} change to {{if request.app == 'core' and request.module == 'members' and request.controller == 'profile' and request.do == 'content' and request.type == 'forums_topic_post'}} <div class='ipsType_richText ipsContained ipsType_medium'> <div data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='3 lines' data-ipsTruncate-watch='false'> {$row->truncated(true)} </div> </div> {{else}} {$row->content()|raw} {{endif}}
Maulik Posted January 1, 2018 Author Posted January 1, 2018 On 12/30/2017 at 4:40 PM, newbie LAC said: Hello, Edit the template core - front - tables - commentRows This template uses also for other content so you should add conditions. Find {$row->content()|raw} change to {{if request.app == 'core' and request.module == 'members' and request.controller == 'profile' and request.do == 'content' and request.type == 'forums_topic_post'}} <div class='ipsType_richText ipsContained ipsType_medium'> <div data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='3 lines' data-ipsTruncate-watch='false'> {$row->truncated(true)} </div> </div> {{else}} {$row->content()|raw} {{endif}} You're brilliant.. Thanks a lot ..!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.