XF 2.1 How to edit the template for recent content?

HJW

Active member
Hello,

For members profiles I can't find the template for recent content.

It appears to be coming from this:

<xf:foreach loop="$results" value="$result">
{{ $result.render()|raw }}
</xf:foreach>

Is there a template I can edit what is output?

Thanks
 
Hi,

I'm trying to edit the is-deleted class bit from the user postings when viewing a profile, but can't find the template its coming from?

<div class="contentRow is-deleted">
 
Edit the member_latest_activity template and dump $item like so:

1603899316943.png

That will then give you an idea of whether what you're trying to do is possible, based on the available vars.

If the vars you need are in that array, you can use a conditional statement inside the loop to affect the output.

It will likely be easier to open the tab in a new browser tab - members/test.1/latest-activity
 
  • Like
Reactions: HJW
Top Bottom