1. 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

Discussion in 'Resolved Bug Reports' started by kkm323, Nov 10, 2011.

  1. kkm323

    kkm323 Well-Known Member

                            <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
    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
  2. Floris

    Floris Guest

    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)
    kkm323 likes this.
  3. Onimua

    Onimua Well-Known Member

    <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.
    kkm323 and Floris like this.
  4. Floris

    Floris Guest

    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
    kkm323 likes this.
  5. kkm323

    kkm323 Well-Known Member

    thank you all for the informative answers
    please move this thread to the appropriate forum

Share This Page