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

Pass parameters to adminlinks

Discussion in 'XenForo Development Discussions' started by Jafo, Sep 30, 2015.

  1. Jafo

    Jafo Active Member


    <a href="{xen:adminlink 'extra-stats', '', $linkparams}">
    This throws an error:

    How do I pass link parameters then?
  2. batpool52!

    batpool52! Well-Known Member

    <a href="{xen:adminlink 'extra-stats', '', 'param1=value1', 'param2=valu2'}">
    Would be the right method I believe.
  3. Jafo

    Jafo Active Member

    But then you cannot dynamically set parameters and values?
  4. batpool52!

    batpool52! Well-Known Member

    Whenever I tried to dynamically set params in template I always faced error messages like you.
  5. Chris D

    Chris D XenForo Developer Staff Member

    <a href="{xen:adminlink 'extra-stats', '', '_params={$linkParams}'}">
    batpool52! and Jafo like this.
  6. Jafo

    Jafo Active Member

    Thanks @Chris D that is exactly what I needed.

Share This Page