Feature #16383
closedopen module on startup
0%
Description
Hi!
It would be nice, if there would be an option to open a specific installed module on BE login.
(issue imported from #M3894)
Files
Updated by Thomas Hempel about 18 years ago
The attached patch implements this for version 4.0.1.
Greets,
Thomas
Updated by Martin Kutschker about 18 years ago
"startInTaskCenter" must be supported for backwards compatibility:
if (!$module) {
if ($BE_USER->uc['startModule']) {
$module = $BE_USER->uc['startModule'];
} elseif ($BE_USER->uc['startInTaskCenter']) {
$module = 'user_task';
}
}
Updated by Thomas Hempel about 18 years ago
I see. Why not solving this with the update wizard? I think that would be much cleaner.
Anyway, 3894b.diff contains your changes.
Greets,
Thomas
Updated by Sebastian Kurfuerst about 18 years ago
Hi,
first of all: nice work!
Some comments:
- at the line $module = 'user_task', the = was missing
- when the user saves the preferences the first time, the start page will be automatically set to the page module, even if it was the Help->About module before. I think it would be nicer to change this, as it might confuse users.
- Maybe you should change the dropdown like it is in the "Dropdown BE menu" (when you have the selector for the modules on top):
Web
- Page
- View
...
I am looking forward to seeing this in the core!
Greets, Sebastian
Updated by Thomas Hempel about 18 years ago
Hi Sebastian,
thank you. To your comments:
1) fixed
2) I can't reproduce this. I created a new user and the default module was 'help_aboutmodules' as usual. It was correctly selected in the list and it was still selected after saving.
3) see patch. The list is now rearranged. The main modules are inserted as disabled options. So we don't need any JavaScript for checking.
Greets,
Thomas
Updated by Sebastian Kurfuerst about 18 years ago
Hya,
2) - Use an already existing user, and clear the "uc" field in phpMyAdmin then. When you now log in with that user and go to user->setup, the "page" option is selected. Can you reproduce that?
Greets, Sebastian
PS: Great response time!
Updated by Thomas Hempel about 18 years ago
Hi Sebastian,
no, I can't reproduce this. The default module is always 'help_aboutmodules'.
Greets,
Thomas
Updated by Dmitry Dulepov about 18 years ago
..or a static HTML page. I mean, does this sound right that you need to make a BE module if you only want to show nice company logo page after login? :)
Updated by Thomas Hempel about 18 years ago
Hm,
I don't like the idea too much. I think that would be overkill at the moment.
Greets,
Thomas
Updated by Thomas Hempel about 18 years ago
@Sebastian Kurfuerst: Due to the fact that this problem occurs because you deinstalled the help sysext I don't think that is a real bug. It's a kind of not so nice behavior. As you already stated, 99% of all users will have this extension installed.
So for me this patch is final now.
Greets.
Thomas
Updated by Thomas Hempel about 18 years ago
@Sebastian Kurfuerst: Due to the fact that this problem occurs because you deinstalled the help sysext I don't think that is a real bug. It's a kind of not so nice behavior. As you already stated, 99% of all users will have this extension installed.
So for me this patch is final now.
Greets.
Thomas
Updated by Marc Ehret about 18 years ago
Hi,
just want to know if you can confirm this:
1. select any start module and save
2. reload page
3. select another module in the left navigation frame
ta-daa:
the html of the left navigation frame is broken!
the table-row with the start module has lost it's class, which should be: c-subitem-row
Marc
(using 4.0.2)
Updated by Thomas Hempel about 18 years ago
@Marc: I can't imagine how should be produced by the patch. Have you applied any other patches?
Greets,
Thomas
Updated by Marc Ehret about 18 years ago
@Thomas:
ahem... this has nothing to do with your patch... blush
I think this has something to do with the Javascript which restores the classes.
Marc
-------------------------------------------------------
Let's get dirty:
typo3/alt_main.php Line 295:
change
var currentlyHighLighted_restoreValue = "";
to
var currentlyHighLighted_restoreValue = "c-subitem-row";
This seems to work (as long as you have a submodule as start module).
Updated by Thomas Hempel about 18 years ago
Hi Sebastian,
can you please take care of this one? I think that would be a nice thing for 4.1 (or 4.0.3 maybe!?)
Greets from Karlsruhe,
Thomas
Updated by Frans Saris almost 18 years ago
Isn't this feature implemented in typo3 4.1?
greets,
Frans
Updated by Thomas Hempel almost 18 years ago
No. Unfortunately I didn't found the time to finish this. So it will be in 4.2 I guess because it's still "under construction" ;-)
Greets,
Thomas
Updated by Andreas Balzer almost 18 years ago
Thomas: This should be at one of the top positions of your 'has to be done' list ;) I thought it would make it into the core for 4.1 too..