• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

kkm323

Well-known member
#1
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
 
F

Floris

Guest
#2
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)
 

Onimua

Well-known member
#3
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.
 
F

Floris

Guest
#4
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