[pmwiki-users] edits to password-request page
5ko at 5ko.fr
Mon Jan 23 15:36:50 CST 2017
This one has to be enabled in config.php:
$PageAttrFmt = 'page:Site.AttrForm';
Then create the page [[Site.AttrForm]] to place whatever text you need
above the attribute form fields.
This will appear on the attr form for all pages, not only
GroupAttributes, but you could use a conditional markup to restrict it:
(:if name GroupAttributes:)...(:else:)...(:ifend:)
If you absolutely must remove form fields, you need to create your own
function in config.php for this. Best would be to base it on
PrintAttrForm() with a different name, then follow the instructions
I wouldn't do it, if your editors can be trusted to read the message you
placed above the form and follow it. If they cannot be trusted, simply
don't give them "attr" permissions (see Passwords and PasswordsAdmin).
P.S. There is a recipe
http://www.pmwiki.org/wiki/Cookbook/CustomAttrForm that appears to use
the first solution -- not sure if it will help you (haven't reviewed
Change log : http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes : http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade : http://www.pmwiki.org/wiki/PmWiki/Upgrades
On 2017-01-23 21:49, Byron Lunz wrote:
> Thank you, Petko! One other question please: can I edit what appears
> when I
> access GroupAttributes?action=attr to edit a group password? My plan is
> allow the group owner to only edit the read password, plus add some
> additional explanatory text to that page.
> On Mon, Jan 23, 2017 at 11:15 AM, Petko Yotov <5ko at 5ko.fr> wrote:
>> That page is, on your wiki, [[Site.AuthForm]]. Add your text,
>> links, tables or whatever content you need, below the form. If you
>> you can also change/style the form itself, carefully to not delete the
>> input fields.
>> On 2017-01-23 20:06, Byron Lunz wrote:
>>> I have passwords assigned to several groups. I would like to edit the
>>> which is displayed when the password is requested, to add a link to
>>> information page. How/where can I edit that page?
More information about the pmwiki-users