Fixed bug #9061: felogin - recursive storage pids in TypoScript (Thanks to Steffen...
authorBenni Mack <benni.mack@typo3.org>
Thu, 14 Aug 2008 21:45:24 +0000 (21:45 +0000)
committerBenni Mack <benni.mack@typo3.org>
Thu, 14 Aug 2008 21:45:24 +0000 (21:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3978 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/felogin/ext_typoscript_setup.txt
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php

index e830555..0e76126 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2008-08-14  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #9061: felogin - recursive storage pids in TypoScript (Thanks to Steffen Kamper)
        * Fixed bug #9095: xhtml in the backend by default (Thanks to Christian Kuhn)
 
 2008-08-14  Dmitry Dulepov  <dmitry@typo3.org>
index b4d7458..be1c6c3 100644 (file)
@@ -1,6 +1,7 @@
 plugin.tx_felogin_pi1 {
                #storagePid - where are the user records? use single value or a commaseperated list
        storagePid = {$styles.content.loginform.pid}
+       recursive = 
        
                #Template File
        templateFile = EXT:felogin/template.html
index 18242fc..0404bc5 100644 (file)
@@ -73,7 +73,11 @@ class tx_felogin_pi1 extends tslib_pibase {
 
                        // Get storage PIDs:
                if ($this->conf['storagePid']) {
-                       $this->spid = $this->conf['storagePid'];
+                       if (intval($this->conf['recursive'])) {
+                               $this->spid = $this->pi_getPidList($this->conf['storagePid'], intval($this->conf['recursive']));
+                       } else {
+                               $this->spid = $this->conf['storagePid'];
+                       }
                } else {
                        $pids = $GLOBALS['TSFE']->getStorageSiterootPids();
                        $this->spid = $pids['_STORAGE_PID'];
@@ -278,7 +282,7 @@ class tx_felogin_pi1 extends tslib_pibase {
                        // Login form
                $markerArray['###ACTION_URI###'] = $this->getPageLink('',array(),true);
                $markerArray['###EXTRA_HIDDEN###'] = $extraHidden; // used by kb_md5fepw extension...
-        $markerArray['###LEGEND###'] = $this->pi_getLL('login', '', 1);
+               $markerArray['###LEGEND###'] = $this->pi_getLL('login', '', 1);
                $markerArray['###LOGIN_LABEL###'] = $this->pi_getLL('login', '', 1);
                $markerArray['###ON_SUBMIT###'] = $onSubmit; // used by kb_md5fepw extension...
                $markerArray['###PASSWORD_LABEL###'] = $this->pi_getLL('password', '', 1);