SID-01859: Change Default Users Prefs
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
5.10.1 |
| Category: |
CategoryRegistration |
Server OS: |
Debian |
Last update: |
12 years ago |
Hi!
how can I automatically add a preference to a new users page? I want every registered user to have this setting on their user page automatically (without the "literal" stuff):
* Set ALLOWWEBCHANGE = %TOPIC%
What I want to achieve is:
- The web has restricted access: you can only edit topics if you are in Approved-Users-Group
- so after registration a user can't edit his personal user page (to add his email address, phone number, whatever)
- This settings should be put to his user page automatically when it is created
- What this preference does: it allows him to change his user page because his wikiname is the same as the topicname
--
Karsten Priegnitz - 2014-01-20
Discussion and Answer
You can customize the Main.NewUserTemplate to fit your needs. If it does not exist, clone the one from the TWiki web - see
TWikiInstallationGuide
You probably need ALLOWTOPICCHANGE, not ALLOWWEBCHANGE.
You have control over variable expansion, see
TWikiTemplates
--
Peter Thoeny - 2014-01-20
Worked like a charm (Set ALLOWTOPICCHANGE = %TOPIC%).
But what does "Add a default ALLOWTOPICCHANGE ..." in
TWikiInstallationGuide mean?
Danke,
Karsten
--
Karsten Priegnitz - 2014-01-21
What we discussed there
In any case, I do
not recommend locking down user profile pages. Read
TWikiAccessControl.
--
Peter Thoeny - 2014-01-21
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.