[TYPO3] General FE_USERS question
bernd wilke
xoonsji02 at sneakemail.com
Wed Sep 17 23:27:54 CEST 2008
on Wed, 17 Sep 2008 13:11:20 -0600, La Farge Douglas wrote:
> I have a client that requires two registration forms and two different
> login forms.
>
> Registration form 1 will use Login form 1 to access specific areas of
> the site designated for their use.
>
> Registration form 2 will use login form 2 to access different (than
> area 1) areas of the site.
>
> My general question is it possible to set user registration up to
> accomplish this task (without re-writing code)? It seems to me that if
> a second sysfolder is created to hold users for area two and the
> registration and login are told to use that folder for the
> authentication of a user then I would be well on my way to accomplishing
> my task.
>
> One thing - the two registration forms each have different custom
> questions.
>
> Anyone out there know if in theory this idea is doable?
as long as your usergroups have no common user it is easy.
in case any user from group 1 can be also in group 2. you are in trouble,
as TYPO3 can't handle duplicate logins. at every time only one user
maximum can be logged in. no two accounts at the same time.
in real TYPO3 can handle this, as any fe_user can be member of different
usergroups.
but:
you have to handle this in registration process.
that starts with access-rights for the form:
you can show any content for:
+ anyone logged in
+ no one logged in
+ member of group 1 is logged in
+ member of group 2 is logged in
:
by default[1] the first two disclose other options.
having the site for group2, you have to show every user not logged in a
message about membership in group2, also every member of group1, which
does not belong to group2: you have to duplicate content.
but really nasty:
having users in both groups: what to show them?
you have no controll, to show any content to members which belong to
group1 and does NOT belong to group 2.
[1] this can be changed by configuration:
insert into /typo3conf/ext_tables.php:
$GLOBALS['TCA']['pages']['columns']['fe_group']['config']
['exclusiveKeys'] = '-2';
$GLOBALS['TCA']['tt_content']['columns']['fe_group']['config']
['exclusiveKeys'] = '-2';
and include this in your /typo3conf/localconf.php:
$typo_db_extTableDef_script = 'extTables.php';
this enables usage of 'no one logged in' beside group-selection
bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-english
mailing list