Include List (inc)

{inc}

Smarty template includes list plugin. Plugin outputs list css or js includes defined in CMS "Setup" tool (system scope) or "Pages" tool (page scope).

Attributes:

Attribute Name Type Required Default Description
type string No css Type of include files:
  • "css"
  • "js"
  • "nls"
target string No cms Scope of include files:
  • "cms" - cms scope
  • any other value - page scope
filter string No Grabs include files with specified filter token (are not grabbed by default)
async string No Async attribute value ("async" value allowed only) for CSS <link> tag
defer string No Defer attribute value ("defer" value allowed only) for CSS <link> tag
media string No media attribute value for CSS <link> tag
charset string No Charset attribute value for CSS <link> tag

Sample for using:

{inc type="css" target="cms"}

Above will output:

<link rel="stylesheet" href="/cms/srv/lib/qtip-2.1.1/jquery.qtip.min.css" type="text/css"/> <link rel="stylesheet" href="/skin/css/skin.css" type="text/css"/>