{JQueryPlugin}{IconSearchPath}
and
defaults to FamFamFamSilkIcons, FamFamFamSilkCompanion1Icons, FamFamFamFlagIcons, FamFamFamMiniIcons, FamFamFamMintIcons.
The named icon will be picked found first on this path of topics where icons are attached to.
{JQueryPlugin}{IconFonts}
setting. This is a list of icon font definitions, i.e. how they are named, and which css file
must be loaded into a web page to make them available. The default setting is:
$Foswiki::cfg{JQueryPlugin}{IconFonts} = { 'fontawesome' => { 'prefix' => 'fa', 'definition' => '$Foswiki::cfg{PubDir}/$Foswiki::cfg{SystemWebName}/JQueryPlugin/plugins/fontawesome/fontawesome.json', 'plugin' => 'fontawesome', }, 'material' => { 'prefix' => 'ma', 'definition' => '$Foswiki::cfg{PubDir}/$Foswiki::cfg{SystemWebName}/WebFontsContrib/material-icons/material.json', 'css' => '$Foswiki::cfg{PubUrlPath}/$Foswiki::cfg{SystemWebName}/WebFontsContrib/material-icons/font-face.css', }, };Note that Foswiki does only ship Fontawesome icons by default. Material icons are part of the WebFontsContrib extension that you might want to install in addition. Its definition section in the
{JQueryPlugin}{IconFonts}
setting is ignored in case of the definition file not being present.
Each entry is of the following format:
'<fontName>' => { 'prefix' => '<string>', 'definition' => '<definitionFile>', 'plugin' => '<jQueryModule>', 'css' => '<cssUrl>' }
fontName
: unique identifier
definitionFile
: file path to a file holding a font definition (more about it below)
plugin
or css
: either an icon font is loaded by means of a jquery module being loaded; this module then holds any further means to load the required assets into a web page; or the css
url that is to be added to the page.
definitionFile
itself defines the individual icons themselves, i.e. it mapps icon identifier to the actual glyph in the icon font. The definitionFille
lists all identifiers that might be used in a VarJQICON macro:
%JQICON{"<prefix>-<identifier>"}%The
<prefix>
part specifies which of the available icon fonts the <identifier>
relates to. For instance fa-pagelines
load the fontawesome
jQuery module and then generate the according markup to display the icon.
definitionFile
refered to in an fontName
entry of the {JQueryPlugin}{IconFonts}
setting lists all available icon identifiers. It may also list aliases and categories that icons belong to grouping them into meaningful partitions.
JQueryFontAwesome comes with a certan set of categories such as:
{ "icons": [ { "id": "<string>", "name": "<string>", "unicode": "<codepoint>", "categories": [ "<string>", "<string>", ... ], }, ] }
id
(mandatory) defines the icon id unique among all icons of this font
name
: icon name in human readable form, defaults to id
if not present
unicode
: codepoint as defined in the web font
categories
list of categories that the icon belongs to
fonticon
category as well as in the fontName
category (e.g. fonticon, fontawesome, Payment Icons
).
Each icon of an image icon automatically is added to the category naming the topic it is attached to, e.g. FamFamFamSilkIcons
. ![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |