Feature #15180
closed
add config'able FE user storage page
Added by Christoph Koehler about 19 years ago.
Updated about 18 years ago.
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
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
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();
Here is a patch-file, I called 'useStoragePid' instead of 'pid'
Okay, thats more intuitive. Thank your for the diff.
Name of the TSconfig-variable changed from useStoragePid to storagePid as used in several other extensions (hint by Ingo Renner, thanks!).
commited to svn, will be in 3.0.1
3.0.1 - which contains fix - is released
Also available in: Atom
PDF