sv:fileExtension

A file extension icon node is always a sub node of the icon repository (sv:iconRepository) node. It has no children.

The file extension icons defined for the site are part of the appearance site properties underneath the file icons tab.

Node name

Name

Type and description

<extension-name>

Dynamic / Model dependent


The name of the extension (e.g. "pdf")

 

Properties

Name

Type and description

displayName

javax.jcr.PropertyType.STRING


The given name of the



smallIcon

javax.jcr.PropertyType.WEAKREFERENCE


The small icon image



largeIcon

javax.jcr.PropertyType.WEAKREFERENCE


The large icon image

Note that the smallIcon and the largeIcon both can be null (i.e. the properties doesn't exist). This will happen if a icon mapping exists for the site, and if that mapping explicitly says "no icons".

If a smallIcon property and/or a largeIcon property exist, it can be either a site image (sv:image) or a default/server image (sv:defaultImage).

Sitevision Utility API tip!

  • The IconUtil interface exposes a method for easy access to the file extension icon based on the extension. IconUtil also contains methods for getting the URI of a small icon or large icon based on the extension.