core icon indicating copy to clipboard operation
core copied to clipboard

Add Error Messaging when adding same content/widget twice on a page

Open DeanGonzalez opened this issue 14 years ago • 2 comments

Right now when you try to place the same widget or content in the same container on a page you get:

"Ooops, sorry. This has caused a problem"

We should definitely error message when a user tries to add the same content to a container where it already exists, but we should have more elegant error message stating something like:

"Duplicate Content Error: Content already exists in the same container on the page"

oops on duplicate content: http://screencast.com/t/NV3t5j6M7MSA Log error: http://pastebin.com/RMeAgnVe

DeanGonzalez avatar Sep 13 '12 14:09 DeanGonzalez

Included error message when someone tries to include a content/widget that is already included in a container, instead of just show the "Ooops, sorry. This has caused a problem" generic message.

Files Update

  • src/com.dotmarketing/portlet/director/action/DirectorAction.java
  • dotCMS/WEB-INF/Language.propeties

oswaldogallango avatar Dec 11 '12 21:12 oswaldogallango

Now we get both messages... for me the dojo error message that oswaldo placed flashes a little too quickly to read, but at least it is more informative... passing on.

DeanGonzalez avatar Dec 19 '12 22:12 DeanGonzalez