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

Can't Get CSS Template To Work

Discussion in 'XenForo Development Discussions' started by Anthony Parsons, Oct 31, 2011.

  1. Anthony Parsons

    Anthony Parsons Well-Known Member

    What am I doing wrong with getting a new css template to compile?

    I created a new template and new css matching template, included the css template into the template via <xen:edithint template="" />

    The template shows in the header position, being a mimicked version of the Flexile header right content box. The style properties I created register correctly within the .css template as supposed to. But for the life of me, I can't get the .css to the browser in 1.1 beta4. The template renders, but its css template doesn't.

    If I cut the css out of the template and into the extra.css, it works correctly, but I shouldn't have to do that.

    Do I need to do something special in order to get the .css template to compile as part of the xenforo.css?
     
  2. ragtek

    ragtek Guest

    <xen:require css="templatename.css" />

    xen require is for js & css ;)
     
    Anthony Parsons likes this.
  3. Anthony Parsons

    Anthony Parsons Well-Known Member

    Ragtek, you're a legend. Thank you very much, works like a charm now.

    Very much appreciated.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. ragtek

    ragtek Guest

    the edithint tag is only a "helper" for devs.

    if you use xen:require or xen:include , the template parser will include the template
    if you use xen:edithint, the parser will ignore this.

    It will show the IDE (if it supports this) and the xf template editor, that the template inside the edithint is "related"(sorry don't know any better word for this:D ) to the template which you're editing.

    hope it helps and i'm not writing ********^^
     

    Attached Files:

    Anthony Parsons likes this.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Spot on ragtek.

     
  7. ragtek

    ragtek Guest

    you should include this into the faq (even nobody is reading it^^)
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, it's on my to do list of things to add...
     
    ragtek likes this.
  9. Anthony Parsons

    Anthony Parsons Well-Known Member

    Saeed likes this.

Share This Page