ObjectHelperGetObjectIconPath Method (Page, String, String, Boolean, Boolean, String) |
Note: This API is now obsolete.
Gets the icon for the given object type.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax [ObsoleteAttribute("Use font icons instead.")]
public static string GetObjectIconPath(
Page page,
string objectType,
string iconName,
bool isLiveSite,
bool ensureDefaultTheme,
out string usedObjectType
)
Parameters
- page
- Type: System.Web.UIPage
Page - objectType
- Type: SystemString
Object type constant - iconName
- Type: SystemString
Icon name (e.g. list.png) - isLiveSite
- Type: SystemBoolean
Indicates if URL should be returned for live site - ensureDefaultTheme
- Type: SystemBoolean
Indicates if default theme should be always used - usedObjectType
- Type: SystemString
Object type which has been eventually used to get the icon (this will be usually the given object type, but for inherited object types this can be their parent object type)
Return Value
Type:
StringSee Also