Re: [pmwiki-users] Pagelist and conditionals

2009-03-21 Thread Peter Bowers
On Fri, Mar 20, 2009 at 10:47 PM, pmw...@911networks.com wrote:

 ...
 I have also tried w/o success:

 (:if ! authid:) 'Not Signed in'  (:ifend:)


You probably already checked this, but I'm assuming you are using authuser?

From http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup

(:if authid:)  -  current viewer is authenticated - meaning they have proven
who they are via login - to use this the wiki must include recipe
AuthUserhttp://www.pmwiki.org/wiki/PmWiki/AuthUseror others which
set the
$AuthId variable.
Have you tried the code outside the context of a pagelist just to make sure
it works?

-Peter
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Pagelist and conditionals

2009-03-20 Thread pmwiki
Hi,

I have the following pagelist:

[[#shortview]]
lrindent round frame
(:include {=$FullName} self=0 lines=12 -Site* -Category*:)

%right% [[{=$FullName} | [+++'''... click here to continue ...'''+++]]]

(:if enabled InvalidLogin:) 'Not Signed in'  (:ifend:)



[[#shortviewend]]

I am trying to display the message that they should log-in to see
the rest of the entry, if they are not logged-in. It doesn't work.

I have also tried w/o success: 

(:if ! authid:) 'Not Signed in'  (:ifend:)

Any suggestion?

-- 
Thanks

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users