[pmwiki-users] Edit Link, ?n=page?action=edit

Firefly stealth at fireflyuk.net
Wed Mar 29 03:05:36 CST 2006


That is very clever, its exactly the sort of thing I will need on my site
when I have finished doing this project. 

 

At the moment, I’ve been adding 

 

(:if –pagename:) to my headers and footers so it shows only on the editable
pages.

 

Thanks for the help you two, I’ll defiantly use both, because they will work
on either of my sites. 

 

   _____  

From: zkarj735 at gmail.com [mailto:zkarj735 at gmail.com] On Behalf Of Allister
Jenks
Sent: 28 March 2006 21:48
To: The Editor
Cc: Firefly; pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Edit Link, ?n=page?action=edit

 

On 3/29/06, The Editor <HYPERLINK "mailto:editor at fast.st"editor at fast.st>
wrote:

Hi Firefly

I put this script in my Site.Footer page and it shows up wherever a
user has edit privileges.  Where I don't want the button to show, I
use (:nofooter:) in the group footer (or in a page).  It works really 
nice, for me as an admin also.  I get the button just about anywhere I
need it.

[[<<]]
(:if auth edit:)
(:input form "index.php?n={$FullName}?action=edit":)
(:input submit value="Edit Page":) 
(:input end:)
(:if:)


Nice touch Caveman.  At this point I'll add in another technique I use on
some of my sites.

Here is the definition of my Site.PageFootMenu

->''$[Page last modified on] {$LastModified}'' 
[[<<]]
(:if auth edit:)
*[[{$Name}?action=edit | $[Edit] ]]
*[[{$Name}?action=diff | $[Page History] ]]
*%newwin%[[{$Name}?action=source | $[Source] ]]
*[[Site.Search?q={$Group}/ | $[List Group] ]] 
(:ifend:)
(:if auth admin:)
* [[Site.Search?q=link={$FullName} | $[Backlinks] ]]
*[[{$Name}?action=upload | $[Attach File] ]]
*[[{$Name}?action=attr| $[Attributes] ]]
*[[{$Group}.GroupAttributes| $[Group Attributes] ]] 
(:ifend:)

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'!) 

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.

-- 
Allister 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/295 - Release Date: 28/03/2006


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/295 - Release Date: 28/03/2006
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060329/f1267dd7/attachment.html 


More information about the pmwiki-users mailing list