Not a bug {xen:link forums/?prefix_id=9, $forum} --> shows a error when use in template

kkm323

Well-known member
Code:
                        <a href="{xen:link forums/?prefix_id=9, $forum}" class="tinystar" title="{xen:phrase pref_new}">{xen:phrase  pref_new }</a>
I tried using this code but it doesn't seem to work and it shows this message
HTML:
The following templates contained errors and were not saved: links_footer: 1)    Line 8: Template syntax error.
I wanted to link specific prefix to the forum
 
Isn't the format: buildPublicLink('threads', $thread, array('page' => 2, 'other_param' => 'something))
So perhaps it's expecting something like:

{xen:link forums, $forum, array('prefix_id' => 9}

(Just thinking outloud)
 
Try:
HTML:
<a href="{xen:link forums, $forum, 'prefix_id=9'}" class="tinystar" title="{xen:phrase pref_new}">{xen:phrase  pref_new }</a>

EDIT: Oh, just a tad bit behind Floris.
 
thread_list template also shows it in this manner:

{xen:link forums, $forum, 'prefix_id={$thread.prefix_id}'}

Perhaps there's no need for array, if you just have 1 item, just put it within single quotes. And it will become blah?blah=x
 
Top Bottom