TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3-dev] Configuration feature in web->page pagetree

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-dev@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 21.02.2007, 18:30
Steffen Stein
Gast
 
Beiträge: n/a
Standard [TYPO3-dev] Configuration feature in web->page pagetree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 21.02.2007, 18:40
Benjamin Mack
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] Configuration feature in web->page pagetree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 21.02.2007, 18:48
Steffen Stein
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] Configuration feature in web->page pagetree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 01.03.2007, 13:59
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] Configuration feature in web->page pagetree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:03 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74