Bug #23057
closedSwitching workplaces causes nesting of BE
0%
Description
Switching to another workspace causes the BE interface to be reloaded in the content area.
Steps to reproduce:
1. Log in to the backend.
2. Switch to another workspace
Expected behavior:
The black icon bar is always displayed at the top, the module list on the left, and the page tree and content editing area to the right.
Actual behavior:
After switching, the black icon bar remains at the top and the module list remains on the left, but a complete new BE interface is loaded where only the page tree and content editing area should be.
This started with TYPO 4.4.
(issue imported from #M14946)
Files
Updated by Andreas Kießling over 14 years ago
Are you using templavoila? Activate classic page module and try again. This seems to be caused by hardcoded "top.goToModule('web_layout');" in the workspace js.
Additional note: this happend for me only, if the current loaded module was not a 'web_xyz' module, e.g. user setup.
Updated by Andreas Kießling over 14 years ago
Quick fix: instead of forced web_layout, this switches to the first available module. So templavoila, regular page, list, file, ... whatever is available.
--- typo3/js/workspacemenu.orig.js 2010-07-21 11:27:27.000000000 0200
++ typo3/js/workspacemenu.js 2010-07-21 12:11:27.000000000 0200@ -168,7 +168,7
@
// the boolean "true" makes the page reload from the server
$('content').contentWindow.location.reload(true);
} else {
- top.goToModule('web_layout');
top.goToModule($$('#typo3-menu li.menuSection:first-child > ul > li:first-child')[0].readAttribute('id').substring(8));
}
// reload the module menu
Updated by Christian Hennecke over 14 years ago
I can confirm that it does not happen with web_xyz modules.
Updated by Steffen Gebert over 14 years ago
Can confirm this issue with TV.
I will ask Stefan Galinski, if he has a cleaner solution. Does this also exist in 4.3?
Updated by Stefan Galinski over 14 years ago
The cleanest solution would be:
top.goToModule(TYPO3.configuration.pageModule);
The patch is currently on the way to the mailing list. Happy voting!
Updated by Andreas Kießling over 14 years ago
What if the user has no page module? A user could be limited to list or any other workspace-aware module.
Updated by Stefan Galinski over 14 years ago
You are right! That could really be a problem, but it's not a solution to redirect to the first available web module. Maybe we should define a fallback order or anyhting like this?
Updated by Andreas Kießling over 14 years ago
Probably: page, list, workspace? Other modules are most likely not available for a regular user (except News-Admin maybe). The start module for a user could be limited to live workspace, but at least that would be adjustable?
Updated by Steffen Kamper over 14 years ago
Committed to svn
4_4 rev 8296
trunk rev 8297