Documentation > CMS Template API Library > InputContext > UIType
UIType
The type of user interface from which the current user is running the template.
Type
CrownPeak.CMSAPI.UIType
Code Example
C#
Sample:
if (context.UIType == UIType.Classic) { // Classic-specific code } else { // Regular code }