[pmwiki-users] (:if construction
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
> I then logged in as 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:)
> 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
-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...
More information about the pmwiki-users