Click or drag to resize
AdministrationUrlHelperGetImagePath Method
Gets UI image path for given theme.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static string GetImagePath(
	string theme,
	string imagePath,
	bool isLiveSite = false,
	bool ensureDefaultTheme = false
)

Parameters

theme
Type: SystemString
Theme
imagePath
Type: SystemString
Partial image path starting from ~/App_Themes/(Skin_Folder)/Images/ (e.g. '/CMSModules/Membership/module.png')
isLiveSite (Optional)
Type: SystemBoolean
Indicates if URL should be returned for live site
ensureDefaultTheme (Optional)
Type: SystemBoolean
Indicates if default theme should be always used

Return Value

Type: String
See Also