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

if xenforo option show some code

Discussion in 'XenForo Development Discussions' started by PoLiZe, Dec 6, 2010.

  1. PoLiZe

    PoLiZe Well-Known Member

    Hi people, i'm making a add-on but i dont know that

    how i need put in a template for check a option on xenforo..

    Without the template i need make:


    but in the template how i need make?

    <xen:if ?? how?

    Sorry for my bad english :(
  2. Indigo

    Indigo Active Member

    I believe you would use {$xenOptions.languageltp} in your template, to get the value of the languageltp option. Conditionals would be like:
    <xen:if is="{$xenOptions.languageltp}">
    some html
  3. PoLiZe

    PoLiZe Well-Known Member

    <xen:if is="{$xenOptions.languageltp}" == "es" > some html </xen:if>

    that is right?
  4. Indigo

    Indigo Active Member

    That would throw you a syntax error due to misplaced quotes. The entire condition should be within the double quotes.
    <xen:if is="{$xenOptions.languageltp} == 'es'"> ... </xen:if>
  5. PoLiZe

    PoLiZe Well-Known Member

    Ok thanks! :D

Share This Page