[pmwiki-users] Re: Thought for the advanced authors UI mode

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 25 12:48:09 CDT 2005


On Thu, Aug 18, 2005 at 07:52:58AM +0200, chr at home.se wrote:
> > Another possible solution to this would be for us to enable the 
> > "action=" option to pagelists.  Then one could do:
> > 
> >    (:pagelist trail=Site.RecentChanges count=10 action=edit fmt=simple:)
> > 
> > and get a list of the last ten modified pages with 
> > ?action=edit links appended to each.
> 
> I was about to suggest something like this, so I'm all for it! :-)
> 
> A slight complication is of course that you'd probably want to specify how 
> it should look as well. Do you imagine that the using the example above 
> on this list
> 
> 	* [[PageA]]
> 	* [[PageB]]
> 
> would simply result in this output?
> 
> 	* [[PageA(?action=edit)]]
> 	* [[PageB(?action=edit)]]

The fmt= options don't normally result in PmWiki markup, they generate
directly to HTML.  So the end result is that the action parameter
is simply appended to each of the links generated by fmt=simple.

In fact, for this reason it will might end up being called
"query=" instead of "action=", so that the original call would be

    (:pagelist trail=Site.RecentChanges count=10 query=?action=edit fmt=simple:)

Or perhaps we go ahead and implement both query= and action=, with
action= being a shortcut for "query=?action=edit".

Pm




More information about the pmwiki-users mailing list