[Typo3-dev] Re: [Typo3] Automatic setting of TCAdefaults for backendusers
Peter Niederlag
niederlag at ikd01.de
Fri Dec 19 09:00:35 CET 2003
Hi Ole,
Ole Junker <ole at junker.nu> schrieb :
cc and reply typo3-dev@
> Hi list
>
> I wonder how I make Typo3 to set values for:
>
> TCAdefaults.tt_news.author_email and
> TCAdefaults.tt_news.author
>
> automatically.
>
> I had expected that name- and e-mail address-fields from the
> backenduser setupform were set as TCAdefaults... but they do'nt.
[...]
> Obviously those values are automatically set for user Admin. But what
> can I do to set the values automatically for backendusers too, so I
> don't have to set them manually in the users TSconfig?
That is the only solution I have found yet. IMHO would be very nice to
have
that done automatically as you sugested and it is done if "admin-flag"
is
set.
It looks like this in 3.6.0-dev:
-----------snipp-------------------
-- lines 533-552 --------------
-- $Id: class.t3lib_userauthgroup.php,v 1.3 2003/12/11 12:58:47
typo3----
--------------------------------------
// Default TSconfig for admin-users
if ($this->isAdmin()) {
$this->TSdataArray[]=$this->addTScomment('"admin" user presets:').'
admPanel.enable.all = 1
setup.default.deleteCmdInClipboard = 1
options.shortcutFrame=1
';
if (t3lib_extMgm::isLoaded('tt_news')) {
$this->TSdataArray[]='
// Setting defaults for tt_news author / email...
TCAdefaults.tt_news.author = '.$this->user['realName'].'
TCAdefaults.tt_news.author_email = '.$this->user['email'].'
';
}
if (t3lib_extMgm::isLoaded('sys_note')) {
$this->TSdataArray[]='
// Setting defaults for sys_note author / email...
TCAdefaults.sys_note.author = '.$this->user['realName'].'
TCAdefaults.sys_note.email = '.$this->user['email'].'
';
}
-------------------snapp-----------------------
Any reasons why '.this->user['realName'].' et al is only set for
'tt_news' and 'sys_note' if($this->isAdmin)?
Cheers,
PeterN
--
Peter Niederlag
http://www.ikd01.de * Information Kommunikation Design *
http://www.clown-goli.de * Clown-Comedy-Jonglage-Animation *
More information about the TYPO3-dev
mailing list