Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-dev] Configuration feature in web->page pagetree within the typo3-dev@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Dear group, I am working on the following problem: I want backend users to be only able to see pages ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Dear group,
I am working on the following problem: I want backend users to be only able to see pages that they may edit in the web->page module pagetree. Still, I want them to "see" a lot more pages when trying to generate a link using the RTE. The browsable_tree class has support for limiting the displayed pages to those that are editable to the user. I propose to introduce a configuration feature into alt_db_navframe.php allowing to limit the pages shown in the tree not only to visible pages, but to arbitrary access configurations (such as editable in my case). I hereby submit a patch for discussion - configuration options can of course be rendered more user-friendly than supplying the integer-code of the desired access-right-pattern. Patch follows below affected file: typo3/alt_db_navframe.php --- alt_db_navframe.php 2007-02-21 18:15:29.000000000 +0100 +++ alt_db_navframe_new.php 2007-02-21 17:48:46.000000000 +0100 @@ -86,7 +86,12 @@ * @return void */ function localPageTree() { - $this->init(); + if ($GLOBALS['TYPO3_CONF_VARS']['BE']['restrictWebPageTree']) { + $restriction=$GLOBALS['TYPO3_CONF_VARS']['BE']['restrictWebPageTree'] + $this->init(' AND '.$GLOBALS['BE-USER']->->getPagePermsClause($restriction)) + } else { + $this->init(); + } } /** _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#2
|
|||
|
|||
|
Hey Steffen,
interesting idea. Is this patch made against 4.1 (trunk) or the 4.0 version? What do you think of making this a tsconfig-variable (so it's on a per-user-basis) instead of a global conf-variable? Also, you can open up a bugreport ("feature") in the bugtracker at http://bugs.typo3.org and attach your patch there, too! -- greetings, benni. -SDG- www.xnos.de // www.xnos.org Steffen Stein wrote: > Dear group, > > I am working on the following problem: > > I want backend users to be only able to see pages that they may edit in > the web->page module pagetree. > Still, I want them to "see" a lot more pages when trying to generate a > link using the RTE. > > The browsable_tree class has support for limiting the displayed pages to > those that are editable to the user. > I propose to introduce a configuration feature into alt_db_navframe.php > allowing to limit the pages shown in the tree not only to visible pages, > but to arbitrary access configurations (such as editable in my case). > > I hereby submit a patch for discussion - configuration options can of > course be rendered more user-friendly than supplying the integer-code of > the desired access-right-pattern. > > Patch follows below > > affected file: typo3/alt_db_navframe.php > > --- alt_db_navframe.php 2007-02-21 18:15:29.000000000 +0100 > +++ alt_db_navframe_new.php 2007-02-21 17:48:46.000000000 +0100 > @@ -86,7 +86,12 @@ > * @return void > */ > function localPageTree() { > - $this->init(); > + if ($GLOBALS['TYPO3_CONF_VARS']['BE']['restrictWebPageTree']) { > + $restriction=$GLOBALS['TYPO3_CONF_VARS']['BE']['restrictWebPageTree'] > + $this->init(' AND > '.$GLOBALS['BE-USER']->->getPagePermsClause($restriction)) > + } else { > + $this->init(); > + } > } > > /** > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/...info/typo3-dev _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#3
|
|||
|
|||
|
Benjamin Mack wrote:
> interesting idea. Is this patch made against 4.1 (trunk) or the 4.0 > version? It's against 4.0 (stable) > What do you think of making this a tsconfig-variable (so it's on a > per-user-basis) instead of a global conf-variable? That's probably a good idea. I'm actually looking for a "good" place to put the configuration. So I'm open to suggestions here. BTW: The patch in the previous post has a double dereferencing arrow on line 11, so it won't compile. Sorry about that. Regards, Steffen. _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#4
|
|||
|
|||
|
Steffen Stein kirjoitti:
> Benjamin Mack wrote: >> interesting idea. Is this patch made against 4.1 (trunk) or the 4.0 >> version? > It's against 4.0 (stable) be aware that the class localPageTree doesn't exist anymore in Typo3 4.1. I met this problem making XCLASS for navigation frames. class ux_localPageTree extends localPageTree { I got error message that the parent class 'localPageTree' doesn't exist, when ux_... can't extend non-existing class! I must create for 4.1 totally new XCLASS file _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-dev] cropHtml as new Feature for stdWrap | Steffen Kamper | typo3-dev@lists.netfielders.de | 18 | 06.03.2007 00:50 |
| [TYPO3-dev] Bug or disturbing Feature $this->cObj->IMAGE | Chris Wittmann [Swift Lizard] | typo3-dev@lists.netfielders.de | 3 | 02.02.2007 13:15 |
| [TYPO3-templavoila] Bug or feature of TV or T3 | Daniel Doesburg | typo3-project-templavoila@lists.netfielders.de | 10 | 23.01.2007 22:06 |
| [TYPO3] Gallery that feature FE user upload. | Morten Kjems | typo3-english@lists.netfielders.de | 3 | 17.01.2007 15:14 |
| [TYPO3-dev] [TYPO3-hci] visualisation of current page in the pagetree | Martin Kutschker | typo3-dev@lists.netfielders.de | 0 | 13.12.2006 14:57 |