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

Extending XenForo_CssOutput so it can deliver an ETag

Discussion in 'XenForo Development Discussions' started by Marcus, Feb 28, 2015.

  1. Marcus

    Marcus Well-Known Member

    Is it possible in some way to extend XenForo_CssOutput or some other class that is executed with this class, so I could add an ETag header? Thanks!
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    The load_class event will allow you to extend the class.
     
    Marcus likes this.
  3. Marcus

    Marcus Well-Known Member

  4. Marcus

    Marcus Well-Known Member

    I could not extend that class some years before, I asked in that forum and got a negative answer. It was before the introduction of the load_class event.

    Is it possible to extend any classes from XenForo_Templates? I guess these are still all not extendable with stock xenforo, is that correct? Thanks!
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    I believe it's a recent change but I don't believe that change extended to the template system.
     
    Marcus likes this.

Share This Page