Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Using Edit bar for all the components

Avatar

Community Advisor

Hi

    Is it a best practice to use edit bar for all the components developed for a particular project . 

   Also, using the below code directly in global.jsp for removing extra divs, will it affect any other functionality of components in publish mode.

<% if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) { IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE); } %>

Thanks

Veena

1 Accepted Solution

Avatar

Correct answer by
Level 9

Here is the detailed article on using edit bars and use cases for projects.

https://adobeaemtherightway.wordpress.com/2014/05/27/usability-tip-use-edit-bars-instead-of-roll-ove...

The code that you place does not harm anything in publish mode, you have an if condition, it will be executed only in author enviroment.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Here is the detailed article on using edit bars and use cases for projects.

https://adobeaemtherightway.wordpress.com/2014/05/27/usability-tip-use-edit-bars-instead-of-roll-ove...

The code that you place does not harm anything in publish mode, you have an if condition, it will be executed only in author enviroment.