XenForo Help with bbcode and including template

G

grantus

Guest
I'm trying to include a template into a post but I don't know how I'm supposed to pass the {$id}.

For example I have this:

Code:

Code:
Matched URLs:
path/to/file-view/{$id}/

Embed template:
<xf:include template="file_view" name="file_view" file_id="{$id}" />

So it's calling the template but of course file_id is not working. file_id is what I use in my router format.

Continue reading...