plainblack.com
Username Password
search
Bookmark and Share

    

WG8: Admin On going away

User preaction
Date 4/14/2011 1:04 pm
Views 714
Rating -1    Rate [
|
]
Previous · Next
User Message
preaction

This should come as no surprise to those at the WUC last year, but I am right now in the process of removing the last bits of the toggled "Admin Mode". Admin mode means now "anyone in the Admin Interface frame". The controls toolbars and layout drag handles will only show up if the user is inside the admin frame.

This presents some problems for anyone who used <tmpl_var session.var.adminOn> in their custom templates to present new options to the user. It also presents some problems to me: How do I deal with those custom <tmpl_var session.var.adminOn> blocks?

Right now, I'm leaning toward: "Admin mode is on for anyone in Turn Admin On group, always."

Obviously, this has some side-effects. I will be fixing any side-effects in WebGUI core code (DataForm, Product, Layout, and others). But it also has side-effects for anyone else using adminOn as an indicator to show admin functions.

There will be a workalike to Admin On, but it will require you to change your templates to use it. Any element with a class="wg-admin-toolbar" will get toggled visible if the user is inside the admin interface. This has some benefits, like you could simulate the old behavior of Admin On using JS and CSS.

How badly will this affect you? Should I just leave adminOn off instead of on?



Back to Top
Rate [
|
]
 
 
susanb

Since I haven't been to a WUC in a while, this is a bit of a surprise for me. It sounds like it will have a huge impact on us and our workflow, but so will most other things in WG8.

If you set it to "Always On", does that make it impossible for designers, etc to see what the site will look like to regular users without either logging out or becoming a regular user.

If it's set to always off, will we need to add code to every single template in order to edit anything on the site.

Or am I totally misunderstanding what you are saying? I know I don't understand what the admin frame is. Is there a WGTV presentation I can try to go through to see what's been said at previous WUCs, and maybe even see what the admin frame is?

Susan B



Back to Top
Rate [
|
]
 
 
preaction

The 2010 WUC keynote shows some screens from the admin interface, and my presentation on Plugging into the WebGUI 8 Admin Console shows more, including a demo at the end if I remember correctly.

The idea being if you're inside the admin interface, with the admin bar on the left and the informational stuff on the top, you're in admin mode. It's not a toggled state, it's a single page.



Back to Top
Rate [
|
]
 
 
preaction

I've redone the toolbars, and am now working on a new Layout system. The old one will still work, but the new one will be triggered by the admin interface.

Here's a screenshot for prosperity.



Attached Files
Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved