[pmwiki-users] How to refer to active page from sidebar?
Patrick R. Michaud
pmichaud at pobox.com
Tue Jan 9 16:50:13 CST 2007
On Tue, Jan 09, 2007 at 11:34:10PM +0100, f.r.salomons wrote:
>
> Not having any scripting/programming experience, I need some help.
>
> 1. For my website, I would like to add an option for visitors to log in
> and log out from any page, whilst showing the present
> login/logout-status of the visitor. I figured out that this might be
> done with something like the following:
>
> (:if ! authid:) You are not logged in presently. Would you like to
> [[{$FullName}?action=login | log in?]]
> (:ifend:)
> (:if authid:)
> You are logged in as {$AuthId}. Would you like to
> [[{$FullName}?action=logout | log out?]]
> (:ifend:)
Use {*$FullName} instead of {$FullName}. {*$var} refers to the
"active page" instead of the page that contains the markup.
> 2. A further question: instead of adding my above-described
> login/logout-option to the sidebar, I would also like to be able to add
> it to the space between the logo and the searchbox. How can I do that?
You would probably need to modify the skin template for this --
it depends on the skin you are using.
Pm
More information about the pmwiki-users
mailing list