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

What are these <xen:***> tags?

Discussion in 'XenForo Development Discussions' started by JJJ, Nov 26, 2013.

  1. JJJ

    JJJ Active Member

    Maybe a stupid beginners question: In HTML templates, I often find terms like:

            <xen:foreach loop="$posts" value="$post">
                <xen:if is="{$post.message_state} == 'deleted'">
                    <xen:include template="post_deleted_placeholder" />
                <xen:else />
                    <xen:include template="post" />
    This somehow looks like PHP code, but actually it isn't, because it is in <xen:***> tags.

    Where can I learn more about this functionality? Is there a reference guide? Tutorials?

    Thanks for any link, that helps to understand this. :)

  2. Brogan

    Brogan XenForo Moderator Staff Member

    It is XenForo syntax for use in HTML and CSS templates.

    There is no user guide as such, just a matter of learning them as you go.
    Chris D likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

  4. JJJ

    JJJ Active Member

    Thanks @Brogan :)

    Does that mean, I simply could pack in valid PHP syntax?
  5. JJJ

    JJJ Active Member

Share This Page