template::icon::name (public)

 template::icon::name [ -iconset iconset ] name

Defined in packages/acs-templating/tcl/style-procs.tcl

Return for the provided generic name the name in the specified or current iconset the name mapping. This function is necessary in boundary cases, where e.g. a display_template passes the generic name of the icon via template variables which have to be

Switches:
-iconset (optional)
Parameters:
name (required)
Returns:
mapped icon name or the passed in generic name

Partial Call Graph (max 5 caller/called nodes):
%3 packages/file-storage/lib/folder-links.tcl packages/file-storage/ lib/folder-links.tcl template::icon::name template::icon::name packages/file-storage/lib/folder-links.tcl->template::icon::name packages/file-storage/www/folder-chunk.tcl packages/file-storage/ www/folder-chunk.tcl packages/file-storage/www/folder-chunk.tcl->template::icon::name template::iconset template::iconset (private) template::icon::name->template::iconset

Testcases:
No testcase defined.
Source code:
    if {![info exists iconset]} {
        set iconset [template::iconset]
    }
    if {[dict exists $::template::icon::map $iconset $name]} {
        set name [dict get $::template::icon::map $iconset $name]
    }
    return $name
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: