XF 2.0 Latest posts

DL6

Well-known member
#2
In the thread_list_macros template find
HTML:
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
add above this:
HTML:
<div class="contentRow-minor">
    {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }}
</div>
Change the number (120) to the desired character limit.
 

JoyFreak

Formerly Zuse
#3
Thank you so much! But how do I limit it to one widget out of two widgets that use the Latest Post?
As I think this will affect both.
 

JoyFreak

Formerly Zuse
#5
In the thread_list_macros template find
HTML:
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
add above this:
HTML:
<div class="contentRow-minor">
    {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }}
</div>
Change the number (120) to the desired character limit.
Ah yes, thats great thanks but the gif image was mostly for the fact the posts slide up and wanted to know how I can do that too?
 
Top