On Wed, Jan 15, 2014 at 4:32 AM, Jont Allen <jonta...@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? -Peter
_______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users