In this article, I will share with you a solution on how to disable Touch UI in #AEM6, once and for all.

I got a bit annoyed with the touch user interface on #AEM6 and it is a default feature, out of the box. So I posted a question on Twitter, and it took only 1 hour for me to get the exact answer I needed (see Figure 1). Thanks to @heervisscher.

Touch UI Tweets
Figure 1.

There are two options to achieve this goal.

Option 1. Make change to the OSGi configuration via Web Console.

Disable Touch UI via OSGi Configuration
Figure 2.

Option 2. Create a config file in config.author of your apps' project (i.e. /apps/myproject/config.author). See Figure 3 and Code Fragment 1.

Disable Touch UI via apps' project config.author

Figure 3.

Code Fragment 1

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
    jcr:primaryType="sling:OsgiConfig"
    authoringUIModeService.default="CLASSIC"
    authoringUIModeService.editorUrl.classic="/cf#"
    authoringUIModeService.editorUrl.touch="/editor.html"/>