[pmwiki-users] (:if construction

Peter Bowers pbowers at pobox.com
Wed Jan 15 06:11:46 CST 2014

On Wed, Jan 15, 2014 at 4:32 AM, Jont Allen <jontalle at illinois.edu> wrote:

> Next I added the following construction to the default home page:
> (:if enabled AuthId:)
> body text
> (:ifend:)
> I then logged in as admin:
>    ...?action=admin
> The login appeared to be successful.
> 1) How do you know if the login is successful?
> 2) Once logged in, my test construction failed to display "body text"
> Summary: using the default pmwiki download, I am not able to successfully
> use the
>   (:if enabled AuthId:)...(:ifend:)
> construction.
> I suspect that the variable $AuthId is not "true" for some reason.

According to the page http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup the
way to check if you are logged in is

(:if authid:)
-or, with slightly different semantics-
(:if auth <level> <pagename>:)

There is no mention of:

(:if enabled AuthId:)

Do note the case of authid and auth as well.

Can you tell us if these conditionals work in your scenario?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140115/7fd57fdf/attachment.html>

More information about the pmwiki-users mailing list