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

Lack of Interest Variables in template phrases

Discussion in 'Closed Suggestions' started by cclaerhout, Mar 28, 2013.

  1. cclaerhout

    cclaerhout Well-Known Member

    Would it be possible to allow variables in template phrases or is this feature not possible because phrases must be cached in templates?

    I know, some parameters can be added to phrases, but what I mean is really to use a variable as the phrase name.
     
  2. Mike

    Mike XenForo Developer Staff Member

    It's mostly done to discourage usage as that's very inefficient - it would end up costing 1 query per phrase.

    You can set that up in the view and then reference that variable if you have to.
     
    cclaerhout likes this.

Share This Page