[TYPO3-dev] Show or hide flexform field in subject to admin account

Oliver Leitner shadow333 at gmail.com
Wed Oct 22 09:45:06 CEST 2008


Hi Patrick

I havent had that thing done yet, but you could have a look at the following
extension to find a sample how to do that...

http://typo3.org/extensions/repository/view/cl_becache/current/

Greetings
Oliver

On Tue, Oct 21, 2008 at 5:58 PM, Patrick Lobacher <plobacher at n-o-g.de>wrote:

> Oliver Leitner schrieb:
> > Is this ment for your own extensions, or are you searching for the core
> > feature that does that?
>
> Hi Oliver,
>
> this is meant for my own extension.
> Background is, that I present a select field, from where the BE_USER can
> choose one of the directories which are inside his filemounts. If the
> BE_USER is admin he/she should be able to fill in an absolute path
> anywhere in the system (even outside document root). This should be done
> in a seperate input field which is only visible if the user is admin.
>
> Patrick
>
>
> >> I try to present an input field in a flexform in subject to the admin
> >> account.
> >>
> >> If the BE_USER isAdmin the field should be display (and processed) and
> >> if not, the user should not even see this field (or the coresponding
> >> value should be deleted on the way to the database).
> >>
> >> Now the question:
> >>
> >> - I know that this is possible with "dynaflex", but I don't want the
> >> user of my extension to install another extension just for this simple
> task
> >>
> >> - Is it possible to hide/show the field with some hook? Which one is the
> >> correct one? getMainFields_preProcess in class.t3lib_tceforms.php?
> >>
> >> - Is there another (simple) solution?
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>



-- 
Oliver Leitner
http://www.neverslair-blog.net




More information about the TYPO3-dev mailing list