[pmwiki-users] is there a way to customize the password prompts for each page?
Patrick R. Michaud
pmichaud at pobox.com
Mon Nov 21 14:50:34 CST 2005
On Mon, Nov 21, 2005 at 03:04:13PM -0500, Neil Herber wrote:
> At 2005-11-21 12:24 PM -0600, Patrick R. Michaud is rumored to have said:
> >In 2.1 the password prompts will come from a Site.AuthForm page,
> >which can be customized.
>
> Will Site.AuthForm allow conditionals to tailor the prompts on a
> per-group or per-page basis?
One could always put the following into Site.AuthForm:
(:include $Group.AuthPrompt:)
Another feature of Site.AuthForm is that the default will
include a (:messages:) markup, so a per-page or per-group customization
file would be able to do
$MessagesFmt[] = "Hint: What did uncle Jack smoke?";
and that would automatically appear only in the corresponding
pages or groups.
But yes, one could also do
(:if match ^Family:) What did uncle Jack smoke
(:if match ^Family.Birthdays$ :) What year was Jack born?
(:if:)
Site.AuthForm is likely to appear in 2.1.beta2.
Pm
More information about the pmwiki-users
mailing list