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

Hidden CSS cache?! Including CSS simply doesnt work :/

Discussion in 'XenForo Development Discussions' started by RickM, Nov 6, 2010.

  1. RickM

    RickM Well-Known Member

    I've been stuck with this issue for a week or so now.

    Basically I'm trying to include a stylesheet (that is a template created via the admin area) with the following code:

    Code:
    <xen:edithint template="some-stylesheet.css" />
    However the style is NOT being included. Tried on a fresh installation too and its just not adding the stylesheet full stop. Checked though web inspector (Safari) and firebug and there are no sources for the elements which the sheet would be working on.

    Is there some kind of hidden cache on the css.php file? (assuming it is css.php that handles custom css includes). If so, why is there no ability to re-cache this? :/
     
  2. Shadab

    Shadab Well-Known Member

    Try:
    Code:
    <xen:require css="some-stylesheet.css" />
     
    anotheralias and RickM like this.
  3. RickM

    RickM Well-Known Member

    May I give you an 'e-hug'? :D

    Thanks very much - cant believe it was that simple...not sure why there are templates using the 'edithint' then...I pulled it from around the sidebar in the page_container IIRC. Must have changed after beta1 or something :confused:
     
    Shadab likes this.
  4. Shadab

    Shadab Well-Known Member

    :D

    The "edithint" tag is used to give a hint to the IDE about related templates when you are editing via WebDAV. Editors like Dreamweaver will pre-fetch those related templates when you open a particular template for editing.
     
    Darkimmortal likes this.
  5. Mike

    Mike XenForo Developer Staff Member

    It's used by the editor in the admin CP too, to add additional tabs. Generally speaking, edithint is only used for stuff that you would logically want to edit (eg, something that could be 2 levels of includes down) or something that was already included globally (such as the header CSS).
     

Share This Page