XF 2.1 How to make node/thread titles clickable? (Self-linked titles)

sbj

Well-known member
I want to have self-linked titles for nodes and threads.
I probably can do it with a template edit, but I don't know what code to put in.

Examples:

Nodes:
203973
Which would have this link https://xenforo.com/community/forums/xenforo-pre-sales-questions.5/


Threads
203974
link: https://xenforo.com/community/threads/where-to-obtain-support-for-third-party-styles.92673/

So any thread or any node should self-link itself.

I need this and I miss this functionality from vB days. It is great to refresh the page like this, when titles are clickable.
 
Last edited:
Someone very nice helped me out. For reference:

For nodes:
Insert this code in forum_view template after 1st line:
HTML:
<xf:h1><a href="{{link('forums', $forum)}}">{$forum.Node.title}</a></xf:h1>


For threads:
Replace the 2nd line in the thread_view template with this:
HTML:
<xf:h1>{{ prefix('thread', $thread) }}<a href="{{link('threads', $thread)}}">{$thread.title}</a></xf:h1>
 
I've just added that line but where do I put the link ??

Undo anything you did and use this addon,
 
Back
Top Bottom