peterlu
13 years agoChampion
view mode detection, desktop or mobile
Since there is no mobile version of "Front page welcome text" section in admin area, I am going to put freemarker to detect the view mode.
example:
if in mobile view mode
hello mobile
else
hello desktop
Is there any code example of how to do this?
You could try this:
<#ifclientDevice.desktop><#--dosomething --></#if><#ifclientDevice.mobile><#--dosomething --></#if>