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

xen:require css= or xen:edithint template= ??

Discussion in 'XenForo Questions and Support' started by steven s, Jan 11, 2011.

  1. steven s

    steven s Well-Known Member

    When adding css to a template, what is the difference between

    <xen:require css=test.css /> and <xen:edithint template=test.css />
     
  2. Shadab

    Shadab Well-Known Member

    http://xenforo.com/community/threads/hidden-css-cache-including-css-simply-doesnt-work.7689/

     
    Trombones13 likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:require css="" /> will include a css template.

    <xen:edithint template="" /> will just load that template in a tab in the ACP to make it easier to refer to it if you need to.

    Edit: Beaten to it by Shadab :D
     
    Adam K M likes this.
  4. Trombones13

    Trombones13 Well-Known Member

    Words I thought I'd never see from you...! :eek:
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Well it is past my bedtime ;)
     
    Trombones13 likes this.
  6. steven s

    steven s Well-Known Member

    So they do essentially the same thing?
    I like the idea of having it in the tab associated with the template.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    No.

    The require includes the template so you can use the css classes.

    The edithint only loads it in the ACP tab or IDE for reference.
     
  8. steven s

    steven s Well-Known Member

    OK, Got it now.
    Either way it will appear in the ACP tab but only require css is used with the template.
     

Share This Page