How can users customise an edit form for their personal use, and customise other settings like access keys?
Site.Preferences is a template which can be used to create a custom Preferences page, and a custom EditForm page can be specified on that page as well, with the following:
Add to local/config.php:
$PageEditForm = '$[Site.EditForm]';
and add to
Site.Preferences (this is not really necessary, but it
gives the idea):
'Site.EditForm' => 'Site.EditForm',
As said in Site.Preferences, a user should copy this page under a
different name, make any customisations, and _select this link_, which
will place a cookie with the new page name for the Preferences.
For instance create a page for user 'Joe' called
Profiles.Joe-Preferences and add
'Site.EditForm' => 'Profiles.Joe-EditForm',
with Joe-EditForm being Joe's customised version.
Any customisations of access keys can also be done for user Joe on page
Profiles.Joe-Preferences. Joe-Preferences and Joe-EditForm are put conveniently into the Profiles group, next to Joe's profile page called Profiles.Joe. This prevents the Site group from being overloaded with user preference pages, and which may not be accessible to users anyway, and keeps these all in a group which is accessible for general user editing.
That's all. Individual users can have their personal Preference page with an entry pointing to their customised edit form.
Pm has enabled this recipe on pmwiki.org.
Notes and Comments
- This recipe was last tested on PmWiki version: 2 beta 46
- This recipe requires at least PmWiki version: 2 beta44