[pmwiki-users] UserAuth-only edit problem...

H. Fox haganfox at users.sourceforge.net
Mon Jan 16 01:40:21 CST 2006


On 1/15/06, muab ila <muab_ila at gmx.net> wrote:
> heyas!
>
> im having some "problem" with only displaying the edit link
> to authorized people as in http://www.pmwiki.org/wiki/Cookbook/UserAuth
>
> (:if loggedin true:) [ Edit ] [ View ] (:if:) does work, but would mean
> that users would have wo paste this line to every page they create and
> i couldntt expect this.
>
> i tried 2 ways i thought they would work:
>
> 1) creating a footer, but i couldnt realize a self link (as in php $self)

    [[{$Name}]]

> 2) the better way: place something in the template, but i dont have a
> clue what.....
>
>
> could anybody give me the hint?

Maybe use <!--markup:--> in your template.  Try this (unwrapped so
it's on one line) :

    <<!--markup:(:if ! auth edit :)[[({$Name}?action=)login]](:if auth
edit:)[[({$Name}?action=)logout]]-->

or

    <!--markup:(:if loggedin true:) [ [[{$Name}?action=edit|Edit]] ] [
[[{$Name}?action=edit|View]] ] (:if:)-->

Hagan

>
> thx
> muab




More information about the pmwiki-users mailing list