Hello!
Can somebody tell me how to force Desktop view mode (or maybe disable mobile view) in OTRS 5 Free.
Because sometime our customers is using some old pc what recognized wrong - as mobile devices.
I found some setting what called "DesktopMode" in some js files (like Core.UI.Popup.js,Core.Customer.Responsive.js, and some others), i was change it to 1 everywhere where i found it.
But with no luck.
Change View Mode [Force Desktop or disable Mobile mode]
Moderator: crythias
Re: Change View Mode [Force Desktop or disable Mobile mode]
Seems to be we found it! (i like to say thanks to my co-worker).
So in our case wee need to change file CustomerHeader.tt (in my case: /opt/otrs/Kernel/Output/HTML/Templates/Standard/CustomerHeader.tt).
At the 14 line:
<body class="NoJavaScript [% Data.BodyClass | html %]">
changed to:
<body class="JavaScriptAvailable Visible-ScreenXL">
Mobile mode is disabled now for us.
No matter what browser window resolution does we have.
P.S. Any comments approached.
P.S.2 Anyway this solution is not best practice (because any otrs update can broke it, and you will be need to do it again), if you have different more correct solution - please share it with me and others.
P.S.3 i know my English is terrible, i sorry for that guys.
So in our case wee need to change file CustomerHeader.tt (in my case: /opt/otrs/Kernel/Output/HTML/Templates/Standard/CustomerHeader.tt).
At the 14 line:
<body class="NoJavaScript [% Data.BodyClass | html %]">
changed to:
<body class="JavaScriptAvailable Visible-ScreenXL">
Mobile mode is disabled now for us.
No matter what browser window resolution does we have.
P.S. Any comments approached.
P.S.2 Anyway this solution is not best practice (because any otrs update can broke it, and you will be need to do it again), if you have different more correct solution - please share it with me and others.
P.S.3 i know my English is terrible, i sorry for that guys.
Re: Change View Mode [Force Desktop or disable Mobile mode]
Thanks for some good leads. I'm interested in defaulting OTRS 5.0.14 to desktop mode always until customer selects mobile mode Changing that code in /opt/otrs/Kernel/Output/HTML/Templates/Standard/CustomerHeader.tt seems to have no effect for some reason. Even commenting that line out entirely seems to have no effect. Any ideas or something else in sysconfig to look for? I'm also curious what determines whether the system loads mobile vs desktop mode on a first customer visit since the mobile mode is loading on desktop computers which is unwanted. Feedback is appreciated.
OTRS 5.0.14 / Debian 7.11 x64 / Apache 2.2.22 / MySQL 14.14 Distrib 5.5.53
Re: Change View Mode [Force Desktop or disable Mobile mode]
it's based on the resolution..
please also note that you are running an outdated and unsecure version of OTRS. Please update to the latest patchlevel or mucht better to the latest stable version of OTRS
please also note that you are running an outdated and unsecure version of OTRS. Please update to the latest patchlevel or mucht better to the latest stable version of OTRS
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com