On 3/29/06, <b class="gmail_sendername">The Editor</b> <<a href="mailto:editor@fast.st">editor@fast.st</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Firefly<br><br>I put this script in my Site.Footer page and it shows up wherever a<br>user has edit privileges. Where I don't want the button to show, I<br>use (:nofooter:) in the group footer (or in a page). It works really
<br>nice, for me as an admin also. I get the button just about anywhere I<br>need it.<br><br>[[<<]]<br>(:if auth edit:)<br>(:input form "index.php?n={$FullName}?action=edit":)<br>(:input submit value="Edit Page":)
<br>(:input end:)<br>(:if:)<br></blockquote></div><br>Nice touch Caveman. At this point I'll add in another technique I use on some of my sites.<br><br>Here is the definition of my Site.PageFootMenu<br><br>->''$[Page last modified on] {$LastModified}''
<br>[[<<]]<br>(:if auth edit:)<br>*[[{$Name}?action=edit | $[Edit] ]]<br>*[[{$Name}?action=diff | $[Page History] ]]<br>*%newwin%[[{$Name}?action=source | $[Source] ]]<br>*[[Site.Search?q={$Group}/ | $[List Group] ]]
<br>(:ifend:)<br>(:if auth admin:)<br>* [[Site.Search?q=link={$FullName} | $[Backlinks] ]]<br>*[[{$Name}?action=upload | $[Attach File] ]]<br>*[[{$Name}?action=attr| $[Attributes] ]]<br>*[[{$Group}.GroupAttributes| $[Group Attributes] ]]
<br>(:ifend:)<br><br>This means the standard row of buttons only appear if you already have authority to use them. I do this because I am primarily using PmWiki as a website builder and not as a collaborative system. Therefore nobody (visitors to my site) generally realise it is a Wiki (except for the 'powered by'!)
<br><br>When I want to edit a page, I just manually append ?action=login to the URL and enter my admin password and then I can whisk around the site editing anything and everything. Also, when I am logged in as Admin I get a new link on my SideBar which goes to my
Site.Admin page which in turn contains links to things such as skin configs, edit sidebar, sandbox, etc.<br clear="all"><br>-- <br>Allister