[pmwiki-users] creating a page the easy way (patch included)

Jo Rhett jrhett at svcolo.com
Thu May 25 17:46:23 CDT 2006


On Thu, May 25, 2006 at 05:37:16PM -0500, Patrick R. Michaud wrote:
> I probably would accept it, but I think the group name should only
> be considered when the pagename doesn't already provide a group.
> For example, 
> 
>     ?pagename=HomePage&groupname=Main           # Main.HomePage
>     ?pagename=Main.WikiSandbox&groupname=Main   # Main.WikiSandbox, 
>                                                 # *not* Main.Main.WikiSandbox
>     ?pagename=PmWiki.PmWiki&groupname=Main      # PmWiki.PmWiki
> 
> Also, the "?pagename=" parameter is supported primarily for
> backwards compatibility with older (pre-2.0) versions of PmWiki
> and recipes (and bookmarked links), the preferred form is "?n=".  
> Thus if I were to adopt this I'd probably use "g=" instead of the 
> longer "groupname=":
> 
>     ?n=HomePage&g=Main
    
Or perhaps to prevent ambiguity, a new variable? n= has priority, followed
by the other two if present?

  ?p=HomePage&g=Main			# Main.HomePage
  ?n=Main.WikiSandbox&g=This&p=That	# Main.WikiSandbox, *not* This.That

-- 
Jo Rhett
senior geek
SVcolo : Silicon Valley Colocation




More information about the pmwiki-users mailing list