Switching between interface presets

4 views
Skip to first unread message

Alexander Obuhovich

unread,
Jun 5, 2012, 10:11:38 AM6/5/12
to In-Portal Development
Some time ago (can't really tell when) we developed interface preset feature.

It allows to show/hide fields/columns menus through out the Admin Console. There 3 predefined schemes available:
  • simple - most of the stuff disabled/hidden
  • advanced - all is allowed
  • custom - all is allowed
Both "advanced" and "custom" interface presets are of equal value since we didn't restricted anything in them yet.


Also there 2 configuration variables to work with interface presets:
  1. "Admin Console Interface" (AdminConsoleInterface) in "Configuration -> Website -> General" section that allows to set current interface preset (one for all users)
  2. "Allow Admin to change Admin Console Interface" (AllowAdminConsoleInterfaceChange) in "Configuration -> Website -> Advanced" that hides first variable and disallows user to change it.

At first it seems, that there is no use for 2nd setting at all, there is. Let me explain.
  1. Set "simple" interface preset in "Configuration -> Website -> General" section (now "Configuration -> Website -> Advanced" section becomes hidden, while in non-debug mode)
  2. Go to "Configuration -> Website -> Advanced" and enable "Allow Admin to change Admin Console Interface" (now "Admin Console Interface" is no longer visible to ALL, even developers)
Then if we (as developers) miss some sections and want to use them without website owner seeing them we need to:
  1. Go to "Configuration -> Website -> Advanced" section and disable "Allow Admin to change Admin Console Interface" setting
  2. change "Admin Console Interface" setting in "Configuration -> Website -> General" section

As you can see lots of jumping between sections and checking 2 configuration settings.


I'm proposing to simplify this by doing following changes:
  1. show "Admin Console Interface" setting for all users if "Allow Admin to change Admin Console Interface" setting is enabled
  2. show "Admin Console Interface" setting for all users, who have debug mode enabled, if "Allow Admin to change Admin Console Interface" setting is disabled
  3. move "Allow Admin to change Admin Console Interface" setting to be showed as a "[x] allow changing" right next to "Admin Console Interface" setting


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Dmitry A.

unread,
Jun 9, 2012, 12:21:43 PM6/9/12
to in-por...@googlegroups.com
Hi Alex,


I agree, but the ONLY thing you are missing is when (and how) to HIDE "Allow Admin to change Admin Console Interface" check-box once moved next to "Admin Console Interface".

The reason why it was put to a different section (Configuration -> Website -> Advanced) so you can hide it by switching to Simple interface since the who Advanced section is hidden too.

My guess, the only way to always HIDE "Allow Admin to change Admin Console Interface" setting in Simple interface, but I thought we can't show/hide variables with Presets.


DA

Alexander Obuhovich

unread,
Jun 9, 2012, 1:09:30 PM6/9/12
to in-por...@googlegroups.com
We can actually hardcode that one to show checkbox only in debug mode, since usual users won't even need to use it.

Dmitry A.

unread,
Jun 11, 2012, 1:33:20 PM6/11/12
to in-por...@googlegroups.com
Okay, this might work then.

Would you please create this task for 5.2.0 since it's quite annoying to change this every time on Projects.

DA

Alexander Obuhovich

unread,
Jul 10, 2012, 3:00:04 PM7/10/12
to in-por...@googlegroups.com

Alexander Obuhovich

unread,
Jul 13, 2012, 10:14:00 AM7/13/12
to in-por...@googlegroups.com
Here is the patch.

Ready for testing.
ease_interface_preset_change.patch
Reply all
Reply to author
Forward
0 new messages