Dynamic
Well-known member
You've set up the the custom field. You just need to make a quick template edit (or create an add-on and make a template modification).
In the template thread_list_item replace:
with:HTML:<a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}" title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}" class="{xen:if $thread.hasPreview, PreviewTooltip}" data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">
Rich (BB code):<xen:if is="{$thread.customFields.FIELD_ID}"> <a href="{$thread.customFields.FIELD_ID}"> <xen:else /> <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}" title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}" class="{xen:if $thread.hasPreview, PreviewTooltip}" data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}"> </xen:if>
I haven't actually tested this, but it should work.
Thanks a lot dude! Awesome feature
I fixed up your code above as you missed a } on the second line
Last edited: