• 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= ??

steven s

Well-known member
#1
When adding css to a template, what is the difference between

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

Shadab

Well-known member
#2
http://xenforo.com/community/threads/hidden-css-cache-including-css-simply-doesnt-work.7689/

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.
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).
 

Brogan

XenForo moderator
Staff member
#3
<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