Jump to content

Make "posts" layout as "all activity" under member Profile


Maulik

Recommended Posts

Posted

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.

Posted

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}}

 

Posted
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 ..!!

Archived

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

  • Recently Browsing   0 members

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