Feature #15180
closedadd config'able FE user storage page
0%
Description
Ability to configure a page with the frontpage users.
This is from the newloginbox_tmplable extension by Miroslav Monkevic <m@vektorius.lt>
I don't know if you need his permission first, I am sure he won't mind.
Just replace around line 87:
// Get storage PIDs:
$d=$GLOBALS['TSFE']->getStorageSiterootPids();
with:
// Get storage PIDs:
if ($this->conf['pid']) {
$d['_STORAGE_PID'] = $this->conf['pid'];
} else {
$d=$GLOBALS['TSFE']->getStorageSiterootPids();
}
Now you can configure it like so:
plugin.tx_newloginbox_pi1.pid = 141
(issue imported from #M1787)
Files
Updated by Christoph Koehler about 19 years ago
Sorry, didn't know the steps to reproduce weren't shown. Here are the instructions:
Just replace around line 87:
// Get storage PIDs:
$d=$GLOBALS['TSFE']->getStorageSiterootPids();
with:
// Get storage PIDs:
if ($this->conf['pid']) {
$d['_STORAGE_PID'] = $this->conf['pid'];
} else {
$d=$GLOBALS['TSFE']->getStorageSiterootPids();
}
Now you can configure it like so:
plugin.tx_newloginbox_pi1.pid = 141
Updated by Christopher Hlubek about 18 years ago
This would be a nice feature to have. In our site we include the newloginbox plugin on every site and we are using TemplaVoila so it's uncool to set the GRSP for another user storage folder.
It's easy to fix (yet open since almost a year??), just change (Line 80 in 3.0.0)
// Get storage PIDs:
$spid = $GLOBALS['TSFE']->getStorageSiterootPids();
to
// Get storage PIDs:
$spid = isset($this->conf['pid']) ? $this->conf['pid'] : $GLOBALS['TSFE']->getStorageSiterootPids();
Updated by Stefan Strasser about 18 years ago
Here is a patch-file, I called 'useStoragePid' instead of 'pid'
Updated by Christopher Hlubek about 18 years ago
Okay, thats more intuitive. Thank your for the diff.
Updated by Stefan Strasser about 18 years ago
Name of the TSconfig-variable changed from useStoragePid to storagePid as used in several other extensions (hint by Ingo Renner, thanks!).
Updated by Stefan Strasser about 18 years ago
3.0.1 - which contains fix - is released