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

Is it possible to make an if conditional dependent on the styleid?

Discussion in 'Styling and Customization Questions' started by bandit, May 18, 2012.

  1. bandit

    bandit Member

    I'm trying to show different content in a sidebar widget dependent on the style. Is this possible to do using if conditionals?

    I might be way off, but I tried something like:

    <xen:if is="{xen:helper styleid=2}">
    Content 1
    <xen:else />
    Content 2

    But that didn't work.

    Any help is greatly appreciated!

  2. dieketzer

    dieketzer Well-Known Member

    try this:
    <xen:if is="{$visitor.style_id} == X">
    replace X with the relevant style id.
  3. bandit

    bandit Member


Share This Page