Post by mikemcd on Oct 22, 2017 12:42:43 GMT -8
I'm adding a promoted thread to my home page that appears above all the category listings. I can't seem to figure out how to make all the $[Thread] stuff to reference the thread I'd like to promote. In this example, lets say thread number 4 on the forum is what I want to promote. If I change <tr id="$[thread.content_id]" to <tr id="thread-4" it doesn't fill in anything with the post data from that thread.
Anyone know how to approach this? Thanks!
Anyone know how to approach this? Thanks!
<div class="container boards">
<div class="title-bar bbcode"><h2><div class="title_wrapper">Promoted Thread</div></h2></div>
<div class="content cap-bottom">
<table class="list">
<thead>
<tr class="head">
<th class="icon"><span class="aria-hidden">Status</span> </th>
<th class="checkbox"> </th>
<th class="main">Subject</th>
<th class="created-by">Created By</th>
<th class="replies">Replies</th>
<th class="views">Views</th>
<th class="latest last">Last Post</th>
</tr>
</thead>
<tbody class="$[list_class]">
<tr id="$[thread.content_id]" class="$[thread.content_class]">
<td class="icon">$[thread.icon]</td>
<td class="checkbox clickable">$[thread.checkbox]</td>
<td class="main clickable" title="$[thread.short_content]">
<table>
<tr>
<td>$[thread.icons]</td>
<td>
$[thread.labels]
<span class="link target">$[thread]</span>
{if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>{/if}
</td>
</tr>
</table>
</td>
<td class="created-by clickable">$[thread.created_by]</td>
<td class="replies clickable">$[thread.replies]</td>
<td class="views">$[thread.views]</td>
<td class="latest last">by $[thread.last_post.created_by]<br />$[thread.last_post.created_on]</td>
</tr>
</tbody></table>
</div>
</div>